mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 08:30:54 +02:00
unposted: one missing *name = NULL
This commit is contained in:
parent
178e62dbfe
commit
00f16c8e68
2 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
2017-01-12 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||
|
||||
* unposted: Src/hashtable.c: one missing *name = NULL.
|
||||
|
||||
* 40342: Src/builtin.c, Src/exec.c, Src/hashtable.c,
|
||||
Src/signals.c, Test/C04funcdef.ztst: add directory name cache
|
||||
for directories recorded for autoload files.
|
||||
|
|
|
@ -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 *)
|
||||
|
|
Loading…
Reference in a new issue