summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-19 22:57:56 +0000
committerJeremy Allison <jra@samba.org>2003-11-19 22:57:56 +0000
commit8614cc504e0ae85168b6e82c0be83d9bc79f4b84 (patch)
tree991e16f0f9a678951db7bd3e32d5c4767cf2a4f9
parenta63010bae7710a4d24ebbae5f232fa792f005112 (diff)
downloadsamba-8614cc504e0ae85168b6e82c0be83d9bc79f4b84.tar.gz
samba-8614cc504e0ae85168b6e82c0be83d9bc79f4b84.tar.bz2
samba-8614cc504e0ae85168b6e82c0be83d9bc79f4b84.zip
Look at error before using it in debug statement.
Jeremy. (This used to be commit 69550332f33496b0a513914e2290fdb256bc2958)
-rw-r--r--source3/lib/module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/lib/module.c b/source3/lib/module.c
index 38fcf0f329..2abe918ef4 100644
--- a/source3/lib/module.c
+++ b/source3/lib/module.c
@@ -42,9 +42,8 @@ static NTSTATUS do_smb_load_module(const char *module_name, BOOL is_probe)
if(!handle) {
int level = is_probe ? 3 : 0;
- DEBUG(level, ("Error loading module '%s': %s\n", module_name,
- sys_dlerror()));
-
+ error = sys_dlerror();
+ DEBUG(level, ("Error loading module '%s': %s\n", module_name, error ? error : ""));
return NT_STATUS_UNSUCCESSFUL;
}