diff options
Diffstat (limited to 'coreutils/env.c')
-rw-r--r-- | coreutils/env.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/env.c b/coreutils/env.c index e21740d..8d8753e 100644 --- a/coreutils/env.c +++ b/coreutils/env.c @@ -62,8 +62,7 @@ int env_main(int argc ATTRIBUTE_UNUSED, char **argv) environ = cleanenv; } else { while (unset_env) { - unsetenv(unset_env->data); - unset_env = unset_env->link; + unsetenv(llist_pop(&unset_env)); } } |