about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/text.c b/Src/text.c
index 73b9088f2..0e7406970 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -308,7 +308,7 @@ gettext2(struct node *n)
 	    taddstr(*p++);
 	    taddstr(" in");
 	    tindent++;
-	    for (; *l; p++, l++) {
+	    for (; l && *l; p++, l++) {
 		if (tnewlins)
 		    taddnl();
 		else