]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Fix uninitialzed variable warning
authorAndreas Schneider <asn@samba.org>
Wed, 9 May 2018 16:07:47 +0000 (18:07 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 Jun 2018 07:22:24 +0000 (09:22 +0200)
Raised by GCC8.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 6b728b87bf5726f14100d76956c3df3fd9bb1058)

source3/winbindd/wb_getpwsid.c

index a8f32f2fc94187b886bc306ea81c3b6088626a78..8e114abf965a37f8377cb5a6c2e3cae5cc2b673e 100644 (file)
@@ -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;