Set unset_env pointing to a NULL item, to prevent us from walking
off the end of the list and segfaulting.
-Erik
diff --git a/coreutils/env.c b/coreutils/env.c
index d8a76e3..d8b4285 100644
--- a/coreutils/env.c
+++ b/coreutils/env.c
@@ -62,9 +62,13 @@
char **ep, *p;
char *cleanenv[1] = { NULL };
unsigned long opt;
- llist_t *unset_env;
+ llist_t list, *unset_env;
extern char **environ;
+ list.data = NULL;
+ list.link = NULL;
+ unset_env = &list;
+
bb_opt_complementaly = "u*";
bb_applet_long_options = env_long_options;