changeset 95:1c0575f7dd46

Don't crash printing the commandline place.
author David A. Holland
date Mon, 10 Jun 2013 23:33:15 -0400
parents de18d1ac7d34
children 408331be8792
files place.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);