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:
parent
fcbd51acb1
commit
ca3f1a3b79
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue