From patchwork Wed Dec 10 19:10:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 4158 Received: (qmail 8178 invoked by alias); 10 Dec 2014 19:10:47 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 8160 invoked by uid 89); 10 Dec 2014 19:10:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp05.br.ibm.com Message-ID: <54889AAC.3060404@linux.vnet.ibm.com> Date: Wed, 10 Dec 2014 17:10:36 -0200 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH] powerpc: Fix unitialized variable X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14121019-0033-0000-0000-0000013F4FF2 The 'resolv/res_send.c' build with _STRING_ARCH_unaligned not defined may utilize the local resplen uninitialized. This patch sets it to 0. Tested on powerpc64 and powercp32. Along with the e_lgammal_r patch, it fixes the powerpc warning build with werror. --- * resolv/res_send.c (send_vc): Fix unitialized variable. -- diff --git a/resolv/res_send.c b/resolv/res_send.c index af42b8a..c1e0a85 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -668,7 +668,7 @@ send_vc(res_state statp, // int anssiz = *anssizp; HEADER *anhp = (HEADER *) ans; struct sockaddr_in6 *nsap = EXT(statp).nsaddrs[ns]; - int truncating, connreset, resplen, n; + int truncating, connreset, resplen = 0, n; struct iovec iov[4]; u_short len; u_short len2;