summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-09 22:22:20 +0200
committerMichael Adam <obnox@samba.org>2008-04-10 01:29:01 +0200
commit30fedf28557b71367ed16279353f781280e1bf69 (patch)
treebeaa9ec87030116ad1c41953ddd53212fdb5c6cc
parent87ca44723181900799985d7c3c1d02863fb8da71 (diff)
downloadsamba-30fedf28557b71367ed16279353f781280e1bf69.tar.gz
samba-30fedf28557b71367ed16279353f781280e1bf69.tar.bz2
samba-30fedf28557b71367ed16279353f781280e1bf69.zip
libsmbconf: return success and count 0 from get_includes when no includes present.
Michael (This used to be commit 182433be5bae753d264491a3ec97433e2e316d10)
-rw-r--r--source3/lib/smbconf/smbconf_reg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c
index b262959afc..0ac49a74e5 100644
--- a/source3/lib/smbconf/smbconf_reg.c
+++ b/source3/lib/smbconf/smbconf_reg.c
@@ -399,6 +399,9 @@ static WERROR smbconf_reg_get_includes_internal(TALLOC_CTX *mem_ctx,
if (!smbconf_value_exists(key, INCLUDES_VALNAME)) {
/* no includes */
+ *num_includes = 0;
+ *includes = NULL;
+ werr = WERR_OK;
goto done;
}