Fix debug message not to use an uninitialized variable.
authorVolker Lendecke <vlendec@samba.org>
Wed, 19 Mar 2003 08:36:42 +0000 (08:36 +0000)
committerVolker Lendecke <vlendec@samba.org>
Wed, 19 Mar 2003 08:36:42 +0000 (08:36 +0000)
Volker
(This used to be commit 80bfa7efd65af02108e3ef1e2b2952cda6dc5999)

source3/nsswitch/winbindd_user.c

index ee05543d30c96d5e0d47d01076c9eda9b5d1ca3d..d2bd231918ae789399b50baa8d91b8a2de35ec11 100644 (file)
@@ -451,7 +451,6 @@ enum winbindd_result winbindd_getpwent(struct winbindd_cli_state *state)
 
        for (i = 0; i < num_users; i++) {
                struct getpwent_user *name_list = NULL;
-               fstring domain_user_name;
                uint32 result;
 
                /* Do we need to fetch another chunk of users? */
@@ -512,7 +511,7 @@ enum winbindd_result winbindd_getpwent(struct winbindd_cli_state *state)
 
                } else
                        DEBUG(1, ("could not lookup domain user %s\n",
-                                 domain_user_name));
+                                 name_list[ent->sam_entry_index].name));
        }
 
        /* Out of domains */