From: Andreas Schneider Date: Wed, 9 May 2018 16:07:47 +0000 (+0200) Subject: s3:winbind: Fix uninitialzed variable warning X-Git-Tag: ldb-1.4.0~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b728b87bf5726f14100d76956c3df3fd9bb1058;p=thirdparty%2Fsamba.git s3:winbind: Fix uninitialzed variable warning Raised by GCC8. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437 Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- diff --git a/source3/winbindd/wb_getpwsid.c b/source3/winbindd/wb_getpwsid.c index a8f32f2fc94..8e114abf965 100644 --- a/source3/winbindd/wb_getpwsid.c +++ b/source3/winbindd/wb_getpwsid.c @@ -70,7 +70,7 @@ static void wb_getpwsid_queryuser_done(struct tevent_req *subreq) struct winbindd_pw *pw = state->pw; struct wbint_userinfo *info; fstring acct_name; - const char *output_username; + const char *output_username = NULL; char *mapped_name = NULL; char *tmp; NTSTATUS status;