r25107: Fix const warning caused by the way I reformatted this
authorSimo Sorce <idra@samba.org>
Tue, 11 Sep 2007 23:04:14 +0000 (23:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:30:40 +0000 (12:30 -0500)
source/nsswitch/idmap.c

index 009d7a610ba3d8945d2d6b6fc1fee7717af19254..2c7acc185cc56b1cccd39a26b168350b0f505885 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);