1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00:59 +01:00

34568: use META_HEAPDUP when passing dlerror() string to metafy()

This commit is contained in:
Barton E. Schaefer 2015-02-19 08:26:03 -08:00
parent f36f6208bf
commit df7a657b10
2 changed files with 6 additions and 1 deletions

View file

@ -1601,7 +1601,7 @@ do_load_module(char const *name, int silent)
#ifdef HAVE_DLERROR
char *errstr = dlerror();
zwarn("failed to load module `%s': %s", name,
errstr ? metafy(errstr, -1, META_USEHEAP) : "empty module path");
errstr ? metafy(errstr, -1, META_HEAPDUP) : "empty module path");
#else
zwarn("failed to load module: %s", name);
#endif