From 30fedf28557b71367ed16279353f781280e1bf69 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 9 Apr 2008 22:22:20 +0200 Subject: [PATCH] libsmbconf: return success and count 0 from get_includes when no includes present. Michael (This used to be commit 182433be5bae753d264491a3ec97433e2e316d10) --- source3/lib/smbconf/smbconf_reg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/lib/smbconf/smbconf_reg.c b/source3/lib/smbconf/smbconf_reg.c index b262959afc6..0ac49a74e5e 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; }