From: Michael Adam Date: Wed, 9 Apr 2008 20:22:20 +0000 (+0200) Subject: libsmbconf: return success and count 0 from get_includes when no includes present. X-Git-Tag: samba-3.3.0pre1~2778 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=182433be5bae753d264491a3ec97433e2e316d10;p=thirdparty%2Fsamba.git libsmbconf: return success and count 0 from get_includes when no includes present. Michael --- diff --git a/source/lib/smbconf/smbconf_reg.c b/source/lib/smbconf/smbconf_reg.c index b262959afc6..0ac49a74e5e 100644 --- a/source/lib/smbconf/smbconf_reg.c +++ b/source/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; }