summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-13 20:16:28 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-13 14:06:07 +0200
commit73d0ab6558fd6a3f07f6a96b99c89baa46e0d9c2 (patch)
tree8e73457970903ff1ab000a640403120361b3cfb5 /lib
parent01c934c81e55b79601122d8e0740c7946077c37e (diff)
downloadsamba-73d0ab6558fd6a3f07f6a96b99c89baa46e0d9c2.tar.gz
samba-73d0ab6558fd6a3f07f6a96b99c89baa46e0d9c2.tar.bz2
samba-73d0ab6558fd6a3f07f6a96b99c89baa46e0d9c2.zip
lib/param reduce the cost of loadparm_init_s3()
The parameter redirection covers most things now, so this should be safe. Andrew Bartlett
Diffstat (limited to 'lib')
-rw-r--r--lib/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
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;
}