1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +02:00

Mapfile fix from Bart: dupstring parameter name to avoid static buffer overuse

This commit is contained in:
Peter Stephenson 2001-04-11 00:09:05 +00:00
parent fcbd51acb1
commit ca3f1a3b79
2 changed files with 6 additions and 0 deletions

View file

@ -318,6 +318,7 @@ scanpmmapfile(HashTable ht, ScanFunc func, int flags)
* we always read the entire contents of every single file
* in the directory into memory. Hence just leave it empty.
*/
pm.nam = dupstring(pm.nam);
pm.u.str = "";
func((HashNode) &pm, flags);
}