summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-11-19 22:57:53 +0000
committerJeremy Allison <jra@samba.org>2003-11-19 22:57:53 +0000
commitf5e68bcfa1145d45e04012a8acfb6104c86d61ce (patch)
tree71dc3c7215565315318e4d796b4d162244be5aec /source3/lib
parent1e6f7172dd3e019ad79bc2d86614b87386d98009 (diff)
downloadsamba-f5e68bcfa1145d45e04012a8acfb6104c86d61ce.tar.gz
samba-f5e68bcfa1145d45e04012a8acfb6104c86d61ce.tar.bz2
samba-f5e68bcfa1145d45e04012a8acfb6104c86d61ce.zip
Look at error before using it in debug statement.
Jeremy. (This used to be commit 42114b75f2c082522f7806a1af11409609785b06)
Diffstat (limited to 'source3/lib')
-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;
}