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 1da9707e0c3bedfd2744495c3f6eb3ef72db28a4..0f93ae62bc5b17b4b1f104eacf78001281fbb07d 100644 (file)
@@ -2863,6 +2863,7 @@ static void unset_func(const char *name)
                        free(funcp);
                        break;
                }
+               funcpp = &funcp->next;
        }
 }