diff options
| author | Ron Yorston <rmy@pobox.com> | 2024-06-03 08:49:51 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2024-06-03 08:49:51 +0100 |
| commit | ac688749879e4867bee0be6a07eec21a65cec585 (patch) | |
| tree | e47103f4d0b4b0c7f8eed5789ae4555a1930dc41 /miscutils | |
| parent | 75a18a60b40f87dd4d081bc75931c9f93de7b82c (diff) | |
| download | busybox-w32-ac688749879e4867bee0be6a07eec21a65cec585.tar.gz busybox-w32-ac688749879e4867bee0be6a07eec21a65cec585.tar.bz2 busybox-w32-ac688749879e4867bee0be6a07eec21a65cec585.zip | |
make: only reset getopt(3) if necessary
Only invoke GETOPT_RESET() if getopt(3) has actually been called.
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/make.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index bcba080fe..f44de5df6 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
| @@ -3051,9 +3051,9 @@ int make_main(int argc UNUSED_PARAM, char **argv) | |||
| 3051 | if (fargv0) { | 3051 | if (fargv0) { |
| 3052 | opts = process_options(fargv, TRUE); | 3052 | opts = process_options(fargv, TRUE); |
| 3053 | fargv = fargv0 + optind; | 3053 | fargv = fargv0 + optind; |
| 3054 | // Reset getopt(3) so we can call it again | ||
| 3055 | GETOPT_RESET(); | ||
| 3054 | } | 3056 | } |
| 3055 | // Reset getopt(3) so we can call it again | ||
| 3056 | GETOPT_RESET(); | ||
| 3057 | 3057 | ||
| 3058 | // Process options from the command line | 3058 | // Process options from the command line |
| 3059 | opts |= process_options(argv, FALSE); | 3059 | opts |= process_options(argv, FALSE); |
