about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-11-28 18:30:51 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-11-28 18:30:51 +0000
commitdfb24f53ecfde8b69c899e48207c03f599d84cec (patch)
treeb7c3d497477bab6e17691f5ef3e0cca6dbcac181 /Src
parent6f081b9dd3b797f2e396acd4544cf39dfd2f5604 (diff)
downloadzsh-dfb24f53ecfde8b69c899e48207c03f599d84cec.tar.gz
zsh-dfb24f53ecfde8b69c899e48207c03f599d84cec.tar.xz
zsh-dfb24f53ecfde8b69c899e48207c03f599d84cec.zip
16269: Fix crash on reserved-word completion.
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compctl.c b/Src/Zle/compctl.c
index 56de52e46..b4981a842 100644
--- a/Src/Zle/compctl.c
+++ b/Src/Zle/compctl.c
@@ -2096,7 +2096,7 @@ dumphashtable(HashTable ht, int what)
 
     for (i = 0; i < ht->hsize; i++)
 	for (hn = ht->nodes[i]; hn; hn = hn->next)
-	    addmatch(hn->nam, (char *) hn);
+	    addmatch(dupstring(hn->nam), (char *) hn);
 }
 
 /* ScanFunc used by maketildelist() et al. */