mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Set unset_env pointing to a NULL item, to prevent us from walking
off the end of the list and segfaulting. -Erik
This commit is contained in:
parent
04d055f4e1
commit
b7077a7316
@ -62,9 +62,13 @@ extern int env_main(int argc, char** argv)
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user