summary refs log tree commit diff
path: root/Src/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/hashtable.c')
-rw-r--r--Src/hashtable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/hashtable.c b/Src/hashtable.c
index 22ebe3459..a3a38f705 100644
--- a/Src/hashtable.c
+++ b/Src/hashtable.c
@@ -1523,6 +1523,7 @@ dircache_set(char **name, char *value)
 			zfree(dircache, sizeof(*dircache));
 			dircache = NULL;
 			dircache_lastentry = NULL;
+			*name = NULL;
 			return;
 		    }
 		    dcnew = (struct dircache_entry *)