Formerly read.c.~72~
authorRoland McGrath <roland@redhat.com>
Thu, 23 Dec 1993 22:56:05 +0000 (22:56 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 23 Dec 1993 22:56:05 +0000 (22:56 +0000)
read.c

diff --git a/read.c b/read.c
index 0ad6c5b..881f2b0 100644 (file)
--- 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;
          }
       }