(define_makeflags): Terminate properly when FLAGSTRING is empty.

This commit is contained in:
Roland McGrath 1994-11-06 23:33:55 +00:00
parent b511712f25
commit 1a886b6359

2
main.c
View file

@ -1781,6 +1781,8 @@ define_makeflags (all, makefile)
p += sizeof ref - 1; p += sizeof ref - 1;
} }
} }
else if (p == &flagstring[1])
--p;
else if (p[-1] == '-') else if (p[-1] == '-')
/* Kill the final space and dash. */ /* Kill the final space and dash. */
p -= 2; p -= 2;