summaryrefslogtreecommitdiff
path: root/source3/nsswitch/idmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/idmap.c')
-rw-r--r--source3/nsswitch/idmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/nsswitch/idmap.c b/source3/nsswitch/idmap.c
index 009d7a610b..2c7acc185c 100644
--- a/source3/nsswitch/idmap.c
+++ b/source3/nsswitch/idmap.c
@@ -431,9 +431,10 @@ NTSTATUS idmap_init(void)
if (compat) {
parm_backend = talloc_strdup(idmap_ctx, compat_backend);
} else {
- char *backend = lp_parm_const_string(-1, config_option,
- "backend", "tdb");
- parm_backend = talloc_strdup(idmap_ctx, backend);
+ parm_backend = talloc_strdup(idmap_ctx,
+ lp_parm_const_string(
+ -1, config_option,
+ "backend", "tdb"));
}
IDMAP_CHECK_ALLOC(parm_backend);