(define_makeflags): Terminate properly when FLAGSTRING is empty.
authorRoland McGrath <roland@redhat.com>
Sun, 6 Nov 1994 23:33:55 +0000 (23:33 +0000)
committerRoland McGrath <roland@redhat.com>
Sun, 6 Nov 1994 23:33:55 +0000 (23:33 +0000)
main.c

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;