summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-02-11 19:47:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:54 -0500
commitb5114650cf63a0e6338da7ac9b5d2fe82ebb057b (patch)
treef228968a8291e6b23cfd8c3d50d9ab3f426c0ca8 /source3/nsswitch
parentabb131ec95e5ba326b75e26f990cf4a340286b02 (diff)
downloadsamba-b5114650cf63a0e6338da7ac9b5d2fe82ebb057b.tar.gz
samba-b5114650cf63a0e6338da7ac9b5d2fe82ebb057b.tar.bz2
samba-b5114650cf63a0e6338da7ac9b5d2fe82ebb057b.zip
r21284: Fix some unitilized variable warnings pointed out by Volker.
(This used to be commit 5c3edad86098c5271cb141b8f7885ca7f5b48072)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/idmap.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/nsswitch/idmap.c b/source3/nsswitch/idmap.c
index 6de2187e5f..92c5ca1355 100644
--- a/source3/nsswitch/idmap.c
+++ b/source3/nsswitch/idmap.c
@@ -260,8 +260,8 @@ NTSTATUS idmap_init(void)
DEBUGADD(0,("idmap backend option will be IGNORED!\n"));
} else if ( lp_idmap_backend() ) {
const char **compat_list = lp_idmap_backend();
- char *p;
- const char *q;
+ char *p = NULL;
+ const char *q = NULL;
DEBUG(0, ("WARNING: idmap backend is deprecated!\n"));
compat = 1;
@@ -274,8 +274,10 @@ NTSTATUS idmap_init(void)
/* strip any leading idmap_ prefix of */
if (strncmp(*compat_list, "idmap_", 6) == 0 ) {
q = *compat_list += 6;
- DEBUG(0, ("WARNING: idmap backend uses obsolete and deprecated 'idmap_' prefix.\n"));
- DEBUGADD(0, (" Please replace 'idmap_%s' by '%s' in %s\n", p, p, dyn_CONFIGFILE));
+ DEBUG(0, ("WARNING: idmap backend uses obsolete and "
+ "deprecated 'idmap_' prefix.\n"
+ "Please replace 'idmap_%s' by '%s' in %s\n",
+ q, q, dyn_CONFIGFILE));
compat_backend = talloc_strdup( idmap_ctx, q);
} else {
compat_backend = talloc_strdup( idmap_ctx, *compat_list);