From 73d0ab6558fd6a3f07f6a96b99c89baa46e0d9c2 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 13 Oct 2011 20:16:28 +1100 Subject: lib/param reduce the cost of loadparm_init_s3() The parameter redirection covers most things now, so this should be safe. Andrew Bartlett --- lib/param/loadparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 58be25c85b..c130a198df 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -3458,7 +3458,7 @@ struct loadparm_context *loadparm_init_global(bool load_default) struct loadparm_context *loadparm_init_s3(TALLOC_CTX *mem_ctx, const struct loadparm_s3_context *s3_fns) { - struct loadparm_context *loadparm_context = loadparm_init(mem_ctx); + struct loadparm_context *loadparm_context = talloc_zero(mem_ctx, struct loadparm_context); if (!loadparm_context) { return NULL; } -- cgit