X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fenv.c;h=87ab30cdd3977c18563e58a01c55e2aa05a2c2fe;hb=5cfa5ef6f358bb979b76f8927899b920074f698d;hp=d8b428561f81289ef3d93a154442decc957ad551;hpb=b7077a7316fa3b1a0efa8247479c64a67ef1d87c;p=oweals%2Fbusybox.git diff --git a/coreutils/env.c b/coreutils/env.c index d8b428561..87ab30cdd 100644 --- a/coreutils/env.c +++ b/coreutils/env.c @@ -34,8 +34,8 @@ */ /* - * Modified by Vladimir Oleynik (C) 2003 - * - corretion "-" option usage + * Modified by Vladimir Oleynik (C) 2003 + * - correct "-" option usage * - multiple "-u unsetenv" support * - GNU long option support * - save errno after exec failed before bb_perror_msg() @@ -62,13 +62,9 @@ extern int env_main(int argc, char** argv) char **ep, *p; char *cleanenv[1] = { NULL }; unsigned long opt; - llist_t list, *unset_env; + llist_t *unset_env = NULL; extern char **environ; - list.data = NULL; - list.link = NULL; - unset_env = &list; - bb_opt_complementaly = "u*"; bb_applet_long_options = env_long_options;