projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b511712
)
(define_makeflags): Terminate properly when FLAGSTRING is empty.
author
Roland McGrath
<roland@redhat.com>
Sun, 6 Nov 1994 23:33:55 +0000
(23:33 +0000)
committer
Roland McGrath
<roland@redhat.com>
Sun, 6 Nov 1994 23:33:55 +0000
(23:33 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 9c17a34cc993ee8e962f1fac0d601b66e2773089..61b98a642fd1072a6c2f0a92be44017e04cc2609 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-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;