diff options
Diffstat (limited to 'coreutils/printenv.c')
-rw-r--r-- | coreutils/printenv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 06d68d0ef..31d76d712 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c | |||
@@ -11,10 +11,10 @@ | |||
11 | #include "libbb.h" | 11 | #include "libbb.h" |
12 | 12 | ||
13 | int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 13 | int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
14 | int printenv_main(int argc, char **argv) | 14 | int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv) |
15 | { | 15 | { |
16 | /* no variables specified, show whole env */ | 16 | /* no variables specified, show whole env */ |
17 | if (argc == 1) { | 17 | if (!argv[1]) { |
18 | int e = 0; | 18 | int e = 0; |
19 | while (environ[e]) | 19 | while (environ[e]) |
20 | puts(environ[e++]); | 20 | puts(environ[e++]); |