mirror of
https://github.com/mirror/make.git
synced 2026-09-01 20:28:09 +08:00
- Fix bug #7144 (infinite loop sometimes with -q and double-colon rules)
- Resolve support request #103195 (rationalize wordlist fn arguments)
This commit is contained in:
@@ -771,6 +771,10 @@ func_wordlist (char *o, char **argv, const char *funcname UNUSED)
|
||||
_("non-numeric second argument to `wordlist' function"));
|
||||
|
||||
start = atoi (argv[0]);
|
||||
if (start < 1)
|
||||
fatal (reading_file, "invalid first argument to `wordlist' function: '%d'",
|
||||
message, start);
|
||||
|
||||
count = atoi (argv[1]) - start + 1;
|
||||
|
||||
if (count > 0)
|
||||
|
||||
Reference in New Issue
Block a user