mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
34568: use META_HEAPDUP when passing dlerror() string to metafy()
This commit is contained in:
parent
f36f6208bf
commit
df7a657b10
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-02-19 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 34568: Src/Module.c: use META_HEAPDUP when passing dlerror()
|
||||
string to metafy()
|
||||
|
||||
2015-02-19 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* unposted: Config/version.mk: Mikael says it's 2015,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue