diff options
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index c1fd5f22a2..ba9668a1c6 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -3514,14 +3514,14 @@ bool lpcfg_load(struct loadparm_context *lp_ctx, const char *filename) char *n2; bool bRetval; - if (lp_ctx->s3_fns) { - return lp_ctx->s3_fns->load(filename); - } - filename = talloc_strdup(lp_ctx, filename); lp_ctx->szConfigFile = filename; + if (lp_ctx->s3_fns) { + return lp_ctx->s3_fns->load(filename); + } + lp_ctx->bInGlobalSection = true; n2 = standard_sub_basic(lp_ctx, lp_ctx->szConfigFile); DEBUG(2, ("lpcfg_load: refreshing parameters from %s\n", n2)); |