mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
(define_makeflags): Terminate properly when FLAGSTRING is empty.
This commit is contained in:
parent
b511712f25
commit
1a886b6359
1 changed files with 2 additions and 0 deletions
2
main.c
2
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;
|
||||
|
|
Loading…
Reference in a new issue