about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-01-25 09:44:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-01-25 09:44:54 +0000
commit62f76ff5e927e79d764dc0b77ef69917d18ed8cd (patch)
tree71ae5e2cc6457d7cabf179d0a6d0905c9c2d5a0d /Src/Modules
parent5b958e595a2b4060940a5e28e49c522ff486490b (diff)
downloadzsh-62f76ff5e927e79d764dc0b77ef69917d18ed8cd.tar.gz
zsh-62f76ff5e927e79d764dc0b77ef69917d18ed8cd.tar.xz
zsh-62f76ff5e927e79d764dc0b77ef69917d18ed8cd.zip
zsh-workers/9424
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/parameter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index be8b8ad75..3bd7e51b4 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -1418,6 +1418,9 @@ setpmnameddirs(Param pm, HashTable ht)
     int i;
     HashNode hn, next, hd;
 
+    if (!ht)
+	return;
+
     for (i = 0; i < nameddirtab->hsize; i++)
 	for (hn = nameddirtab->nodes[i]; hn; hn = next) {
 	    next = hn->next;
@@ -1426,9 +1429,6 @@ setpmnameddirs(Param pm, HashTable ht)
 		nameddirtab->freenode(hd);
 	}
 
-    if (!ht)
-	return;
-
     for (i = 0; i < ht->hsize; i++)
 	for (hn = ht->nodes[i]; hn; hn = hn->next) {
 	    struct value v;
@@ -1649,6 +1649,9 @@ setaliases(Param pm, HashTable ht, int global, int dis)
     int i;
     HashNode hn, next, hd;
 
+    if (!ht)
+	return;
+
     for (i = 0; i < aliastab->hsize; i++)
 	for (hn = aliastab->nodes[i]; hn; hn = next) {
 	    next = hn->next;
@@ -1658,9 +1661,6 @@ setaliases(Param pm, HashTable ht, int global, int dis)
 		aliastab->freenode(hd);
 	}
 
-    if (!ht)
-	return;
-
     for (i = 0; i < ht->hsize; i++)
 	for (hn = ht->nodes[i]; hn; hn = hn->next) {
 	    struct value v;