libsmbconf: move setting of verbatim variable into a more internal function.
authorMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 14:36:30 +0000 (16:36 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 18:04:44 +0000 (20:04 +0200)
Michael

source/lib/smbconf/smbconf_txt_simple.c

index b3e977077646e08847c03c8dfb854060985efcee..1ce9069020f1ca71ea5b96aa8133d0617c3665f7 100644 (file)
@@ -227,6 +227,8 @@ static WERROR smbconf_txt_init(struct smbconf_ctx *ctx, const char *path)
                return WERR_NOMEM;
        }
 
+       pd(ctx)->verbatim = true;
+
        return WERR_OK;
 }
 
@@ -614,7 +616,5 @@ WERROR smbconf_init_txt_simple(TALLOC_CTX *mem_ctx,
                return werr;
        }
 
-       pd(*conf_ctx)->verbatim = true;
-
        return smbconf_txt_load_file(*conf_ctx);
 }