diff --git a/shell/hush.c b/shell/hush.c index 1da9707e0..0f93ae62b 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -2863,6 +2863,7 @@ static void unset_func(const char *name) free(funcp); break; } + funcpp = &funcp->next; } }