From: Roland McGrath Date: Sun, 6 Nov 1994 23:33:55 +0000 (+0000) Subject: (define_makeflags): Terminate properly when FLAGSTRING is empty. X-Git-Tag: 3.72.2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a886b635915445f5b1cc6a9c475cfbb2e7edb83;p=platform%2Fupstream%2Fmake.git (define_makeflags): Terminate properly when FLAGSTRING is empty. --- diff --git a/main.c b/main.c index 9c17a34..61b98a6 100644 --- 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;