mirror of
https://git.savannah.gnu.org/git/make.git
synced 2024-10-24 05:09:58 +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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue