diff options
Diffstat (limited to 'libc/unistd')
-rw-r--r-- | libc/unistd/usershell.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libc/unistd/usershell.c b/libc/unistd/usershell.c index ea4a04ba4..4a9ba0bca 100644 --- a/libc/unistd/usershell.c +++ b/libc/unistd/usershell.c @@ -80,13 +80,9 @@ char * getusershell(void) static void __free_initshell_memory(void) { - if (shells != NULL) { - free(shells); - } + free(shells); shells = NULL; - if (strings != NULL) { - free(strings); - } + free(strings); strings = NULL; } @@ -98,7 +94,6 @@ void endusershell(void) void setusershell(void) { - curshell = initshells(); } |