diff options
author | Roland McGrath <roland@redhat.com> | 1994-11-06 23:33:55 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1994-11-06 23:33:55 +0000 |
commit | 1a886b635915445f5b1cc6a9c475cfbb2e7edb83 (patch) | |
tree | 6de3f656ec4f461f56b0fba97e556e58509c7321 | |
parent | b511712f254e241b7008dd3d74543de8183432b5 (diff) | |
download | gunmake-1a886b635915445f5b1cc6a9c475cfbb2e7edb83.tar.gz |
(define_makeflags): Terminate properly when FLAGSTRING is empty.
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1781,6 +1781,8 @@ define_makeflags (all, makefile) p += sizeof ref - 1; } } + else if (p == &flagstring[1]) + --p; else if (p[-1] == '-') /* Kill the final space and dash. */ p -= 2; |