diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-29 16:14:13 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 2000-02-29 16:14:13 +0000 |
commit | a9c104adb8c41525236cccc82ad143eca5baf4fd (patch) | |
tree | 08d19cfb9e512a8dc2116b777c79b443dbd50adb /Src/Modules/parameter.c | |
parent | dd02ad2a8621e2be160c6042e283202285799c28 (diff) | |
download | zsh-a9c104adb8c41525236cccc82ad143eca5baf4fd.tar.gz zsh-a9c104adb8c41525236cccc82ad143eca5baf4fd.tar.xz zsh-a9c104adb8c41525236cccc82ad143eca5baf4fd.zip |
zsh-workers/9938
Diffstat (limited to 'Src/Modules/parameter.c')
-rw-r--r-- | Src/Modules/parameter.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c index d9ae607bc..606ce4583 100644 --- a/Src/Modules/parameter.c +++ b/Src/Modules/parameter.c @@ -967,14 +967,16 @@ scanpmmodules(HashTable ht, ScanFunc func, int flags) static void dirssetfn(Param pm, char **x) { + char **ox = x; + if (!incleanup) { freelinklist(dirstack, freestr); dirstack = znewlinklist(); while (x && *x) zaddlinknode(dirstack, ztrdup(*x++)); } - if (x) - freearray(x); + if (ox) + freearray(ox); } /**/ |