From 1a886b635915445f5b1cc6a9c475cfbb2e7edb83 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 6 Nov 1994 23:33:55 +0000 Subject: [PATCH] (define_makeflags): Terminate properly when FLAGSTRING is empty. --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.7.4