From: Volker Lendecke Date: Wed, 15 Sep 2004 15:12:36 +0000 (+0000) Subject: r2351: Fix use of an uninitialized variable. valgrind is sooo useful. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5805 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11f617eafd5512dab89bc363662f8e6953c359d4;p=thirdparty%2Fsamba.git r2351: Fix use of an uninitialized variable. valgrind is sooo useful. Volker --- diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c index b81f8ecd45a..493255a5a65 100644 --- a/source/nsswitch/winbindd_cache.c +++ b/source/nsswitch/winbindd_cache.c @@ -609,7 +609,6 @@ static void wcache_save_name_to_sid(struct winbindd_domain *domain, { struct cache_entry *centry; fstring uname; - fstring sid_string; centry = centry_start(domain, status); if (!centry) @@ -619,7 +618,8 @@ static void wcache_save_name_to_sid(struct winbindd_domain *domain, fstrcpy(uname, name); strupper_m(uname); centry_end(centry, "NS/%s/%s", domain_name, uname); - DEBUG(10,("wcache_save_name_to_sid: %s -> %s\n", uname, sid_string)); + DEBUG(10,("wcache_save_name_to_sid: %s -> %s\n", uname, + sid_string_static(sid))); centry_free(centry); }