use bb_fflush_stdout_and_exit instead of exit
[oweals/busybox.git] / coreutils / env.c
index d8b428561f81289ef3d93a154442decc957ad551..87ab30cdd3977c18563e58a01c55e2aa05a2c2fe 100644 (file)
@@ -34,8 +34,8 @@
  */
 
 /*
- * Modified by Vladimir Oleynik <andersen@codepoet.org> (C) 2003
- * - corretion "-" option usage
+ * Modified by Vladimir Oleynik <dzo@simtreas.ru> (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;