From 38ce3b61428bf6ff367821de4ee483b1bc16bff5 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 13 Sep 2012 21:03:17 +0200 Subject: [PATCH] define.c, bug fix, when undefining more than one udfunc --- src/frontend/define.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/define.c b/src/frontend/define.c index 8c533fcb7..8fac827fa 100644 --- a/src/frontend/define.c +++ b/src/frontend/define.c @@ -407,7 +407,7 @@ ntharg(int num, struct pnode *args) void com_undefine(wordlist *wlist) { - struct udfunc *udf, *ludf = NULL; + struct udfunc *udf, *ludf; if (!wlist) return; @@ -416,6 +416,7 @@ com_undefine(wordlist *wlist) return; } while (wlist) { + ludf = NULL; for (udf = udfuncs; udf; udf = udf->ud_next) { if (eq(wlist->wl_word, udf->ud_name)) { if (ludf)