diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/DynaLoader/dl_dlopen.xs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/DynaLoader/dl_dlopen.xs b/ext/DynaLoader/dl_dlopen.xs index 8020e23d97..9f4d9a7b01 100644 --- a/ext/DynaLoader/dl_dlopen.xs +++ b/ext/DynaLoader/dl_dlopen.xs @@ -199,8 +199,9 @@ dl_unload_file(libref) void * libref CODE: DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dl_unload_file(%lx):\n", libref)); - if ((RETVAL = dlclose(libref) == 0 ? 1 : 0) == 0); - SaveError("%s", dlerror()) ; + RETVAL = (dlclose(libref) == 0 ? 1 : 0); + if (!RETVAL); + SaveError(aTHX_ "%s", dlerror()) ; DLDEBUG(2,PerlIO_printf(Perl_debug_log, " retval = %d\n", RETVAL)); OUTPUT: RETVAL |