From 43d480057b2255d4fc82cc4eded038bcea0b5cb6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 10 Mar 2005 17:55:37 +0000 Subject: 20959: fix crash unloading zsh/parameter and test the fix --- Src/params.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src/params.c') diff --git a/Src/params.c b/Src/params.c index 5563e3acb..a233df90d 100644 --- a/Src/params.c +++ b/Src/params.c @@ -147,7 +147,7 @@ mod_export const struct gsu_hash stdhash_gsu = { hashgetfn, hashsetfn, stdunsetfn }; /**/ mod_export const struct gsu_hash nullsethash_gsu = -{ hashgetfn, nullsethashfn, NULL }; +{ hashgetfn, nullsethashfn, nullunsetfn }; /* Non standard methods (not exported) */ @@ -2604,6 +2604,11 @@ void nullintsetfn(UNUSED(Param pm), UNUSED(zlong x)) {} +/**/ +mod_export void +nullunsetfn(UNUSED(Param pm), UNUSED(int exp)) +{} + /* Function to get value of generic special integer * * parameter. data is pointer to global variable * -- cgit v1.2.3