summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-04-01 09:42:11 +0000
committerRoland McGrath <roland@redhat.com>1992-04-01 09:42:11 +0000
commita7ec3f0576b97d4d93a7487fb1c43be2768f3280 (patch)
treea541e0e269d59ff9a4eab7f297eeffbefbabfdb0 /read.c
parent008dab1b259c1d032a0b3e073e0e67a4615f8412 (diff)
downloadgunmake-a7ec3f0576b97d4d93a7487fb1c43be2768f3280.tar.gz
Formerly read.c.~27~
Diffstat (limited to 'read.c')
-rw-r--r--read.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/read.c b/read.c
index 902bee6..ae7358a 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1988, 1989, 1990, 1991 Free Software Foundation, Inc.
+/* Copyright (C) 1988, 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -127,7 +127,11 @@ read_all_makefiles (makefiles)
MAKEFILES is updated for finding remaining tokens. */
p = value;
while ((name = find_next_token (&p, &length)) != 0)
- read_makefile (name, 1);
+ {
+ if (*p != '\0')
+ *p++ = '\0';
+ read_makefile (name, 1);
+ }
free (value);
}