about summary refs log tree commit diff
path: root/Src/Modules/parameter.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2017-02-07 04:28:50 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2017-02-08 05:06:49 +0000
commite9267adb49877bf3e7b30a740745535109202001 (patch)
tree1e5b2b1a0683ea5c86fc97bf0c3ef973b3730401 /Src/Modules/parameter.c
parent3be8e1bbdde909f7432e1223bf3b4ee3c6470402 (diff)
downloadzsh-e9267adb49877bf3e7b30a740745535109202001.tar.gz
zsh-e9267adb49877bf3e7b30a740745535109202001.tar.xz
zsh-e9267adb49877bf3e7b30a740745535109202001.zip
40508: Make $functions re-settable.
Diffstat (limited to 'Src/Modules/parameter.c')
-rw-r--r--Src/Modules/parameter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 6e6228732..c251e4f97 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -330,7 +330,7 @@ unsetpmfunction(Param pm, UNUSED(int exp))
 
 /**/
 static void
-setfunctions(UNUSED(Param pm), HashTable ht, int dis)
+setfunctions(Param pm, HashTable ht, int dis)
 {
     int i;
     HashNode hn;
@@ -349,7 +349,7 @@ setfunctions(UNUSED(Param pm), HashTable ht, int dis)
 
 	    setfunction(hn->nam, ztrdup(getstrvalue(&v)), dis);
 	}
-    deleteparamtable(ht);
+    hashsetfn(pm, ht);
 }
 
 /**/