summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-12-23 22:56:05 +0000
committerRoland McGrath <roland@redhat.com>1993-12-23 22:56:05 +0000
commit2932fb1bcaba5e954e40a89fe004f5b88bd9ed27 (patch)
tree697bd532254553a953fac40f53f34744e52693e4 /read.c
parentdb98fe95a4c692a854c6f73931323528f6750678 (diff)
downloadgunmake-2932fb1bcaba5e954e40a89fe004f5b88bd9ed27.tar.gz
Formerly read.c.~72~
Diffstat (limited to 'read.c')
-rw-r--r--read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/read.c b/read.c
index 0ad6c5b..881f2b0 100644
--- a/read.c
+++ b/read.c
@@ -1617,6 +1617,11 @@ parse_file_seq (stringp, stopchar, size, strip)
new1->name = name;
new1 = new1->next;
}
+
+ if (new1 == 0)
+ /* We might have slurped up the whole list,
+ and continuing the loop would dereference NEW1. */
+ break;
}
}