diff place.c @ 95:1c0575f7dd46

Don't crash printing the commandline place.
author David A. Holland
date Mon, 10 Jun 2013 23:33:15 -0400
parents 2e25e55dba6b
children 33954a07d013
line wrap: on
line diff
--- a/place.c	Mon Jun 10 23:23:01 2013 -0400
+++ b/place.c	Mon Jun 10 23:33:15 2013 -0400
@@ -153,6 +153,9 @@
 {
 	const struct place *from;
 
+	if (p->file == NULL) {
+		return;
+	}
 	from = &p->file->includedfrom;
 	if (from->type != P_NOWHERE) {
 		place_printfrom(from);