Fix const warning caused by the way I reformatted this
authoridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 11 Sep 2007 23:04:14 +0000 (23:04 +0000)
committeridra <idra@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Tue, 11 Sep 2007 23:04:14 +0000 (23:04 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25107 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/nsswitch/idmap.c

index 009d7a6..2c7acc1 100644 (file)
@@ -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);