summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-11-07 18:57:56 +0000
committerRoland McGrath <roland@redhat.com>1994-11-07 18:57:56 +0000
commite25e2fb7f54968b89f46f517c03a41577819e567 (patch)
treee2d0ace559583c0caeba133ba8d0759dcbc90fa1 /main.c
parent1a886b635915445f5b1cc6a9c475cfbb2e7edb83 (diff)
downloadgunmake-e25e2fb7f54968b89f46f517c03a41577819e567.tar.gz
(define_makeflags): When no flags, set WORDS to zero.
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 61b98a6..eca7298 100644
--- a/main.c
+++ b/main.c
@@ -1782,7 +1782,10 @@ define_makeflags (all, makefile)
}
}
else if (p == &flagstring[1])
- --p;
+ {
+ words = 0;
+ --p;
+ }
else if (p[-1] == '-')
/* Kill the final space and dash. */
p -= 2;