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 X-Patchwork-Id: 419825 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1E8691400E7 for ; Thu, 11 Dec 2014 06:10:52 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=T94 IXbjWr14jwFBLh0hahQix3DEwBi26VldePyKXyBAMZSx/Yfb6MLi0rwcNyWunzRN htLGemkomgArLo86LsFvUrI9TDiFbU3El4Z4K0AhZfPxdvJ4ChTqJXAoZO37aCVb l4+Bw7Rh9bkjLCbcax1fmGXD2O40BQmp+cCbOBME= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=jFs1e0y8v bCNgRk/O3jqMGG6GjM=; b=awz7HTYFVwp6/xcpqa3sryrGUQCz/8dpE5tnAYKsS 3S5LGTt1v122Pi1qRC0uVfHtBzFiacynqE9JiRBmlNK5PazSGsAQUdP2JKNSgXwk yfQDpHRhnNvN1ZfWRTl7s7FqZioMF75cWqUcudu6DJZs1S1TcF3CrtLCBJn1WUFF yY= 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;