libsmbconf: return success and count 0 from get_includes when no includes present.
authorMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 20:22:20 +0000 (22:22 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 23:29:01 +0000 (01:29 +0200)
Michael
(This used to be commit 182433be5bae753d264491a3ec97433e2e316d10)

source3/lib/smbconf/smbconf_reg.c

index b262959afc62f347c85843ffcea11ad8e4041a95..0ac49a74e5e8ff0f40143ec576b08bb6fe0ebb64 100644 (file)
@@ -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;
        }