hush: fix thinko in unset_func
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 18 Apr 2009 11:25:18 +0000 (11:25 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 18 Apr 2009 11:25:18 +0000 (11:25 -0000)
shell/hush.c

index 1da9707..0f93ae6 100644 (file)
@@ -2863,6 +2863,7 @@ static void unset_func(const char *name)
                        free(funcp);
                        break;
                }
+               funcpp = &funcp->next;
        }
 }