diff options
author | Ron Yorston <rmy@pobox.com> | 2024-10-20 09:49:10 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-10-20 09:49:10 +0100 |
commit | 253bcde618f9f3f4b12015bcc62f59e8cddff45d (patch) | |
tree | 727a9a055cc2ea0128d353afa3c710cc705d99db /miscutils/make.c | |
parent | 3a68dc015948a7e5eb3f28ca07d9f0b1bace0410 (diff) | |
download | busybox-w32-253bcde618f9f3f4b12015bcc62f59e8cddff45d.tar.gz busybox-w32-253bcde618f9f3f4b12015bcc62f59e8cddff45d.tar.bz2 busybox-w32-253bcde618f9f3f4b12015bcc62f59e8cddff45d.zip |
make: fix test for empty command in inference rule
Commit e90345c10 (make: allow empty commands) changed how empty
commands are handled. This broke the POSIX mode test for
inference rules of the form:
rule: ;
Adjust the setting of 'semicolon_cmd' to the new reality.
Adds 16-32 bytes.
Diffstat (limited to '')
-rw-r--r-- | miscutils/make.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index 7336afdf3..cc5e7ca92 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
@@ -2265,7 +2265,7 @@ input(FILE *fd, int ilevel) | |||
2265 | free(copy3); | 2265 | free(copy3); |
2266 | *s = '\0'; | 2266 | *s = '\0'; |
2267 | } | 2267 | } |
2268 | semicolon_cmd = cp != NULL; | 2268 | semicolon_cmd = cp != NULL && cp->c_cmd[0] != '\0'; |
2269 | 2269 | ||
2270 | // Create list of prerequisites | 2270 | // Create list of prerequisites |
2271 | dp = NULL; | 2271 | dp = NULL; |