r21284: Fix some unitilized variable warnings pointed out by Volker.
authorGerald Carter <jerry@samba.org>
Sun, 11 Feb 2007 19:47:38 +0000 (19:47 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:17:54 +0000 (12:17 -0500)
source/nsswitch/idmap.c

index 6de2187e5f09d93403e6d880ab2ca44a3d73c70b..92c5ca135537298babec629dbf4760e11ffc7087 100644 (file)
@@ -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);