summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-07-15 15:36:02 +0800
committerBo Yang <boyang@samba.org>2009-07-15 17:05:46 +0800
commit86865365ce487a8943370ea2f313000a6440ea9a (patch)
tree544f1b81c5eebc42f365d8435586bc50a92d8ddc /source3/param
parent9ef6af73b319048fc6f3891573f0e10066dffee6 (diff)
downloadsamba-86865365ce487a8943370ea2f313000a6440ea9a.tar.gz
samba-86865365ce487a8943370ea2f313000a6440ea9a.tar.bz2
samba-86865365ce487a8943370ea2f313000a6440ea9a.zip
S3: Small fix to get rid of annoying log message.
Signed-off-by: Bo Yang <boyang@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 7b4e363f1b..4415804a2d 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -5142,6 +5142,9 @@ static char *lp_string(const char *s)
#if 0
DEBUG(10, ("lp_string(%s)\n", s));
#endif
+ if (!s) {
+ return NULL;
+ }
ret = talloc_sub_basic(ctx,
get_current_username(),