Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl7Xz-0004V2-67 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:39:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl7Xy-0004UZ-65 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:39:42 -0400 Received: from [199.232.76.173] (port=59399 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl7Xy-0004UW-06 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:39:42 -0400 Received: from savannah.gnu.org ([199.232.41.3]:53852 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl7Xx-0008Ac-OZ for qemu-devel@nongnu.org; Wed, 01 Oct 2008 15:39:41 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kl7Xx-0004ka-34 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 19:39:41 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kl7Xw-0004kJ-NA for qemu-devel@nongnu.org; Wed, 01 Oct 2008 19:39:40 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Wed, 01 Oct 2008 19:39:40 +0000 Subject: [Qemu-devel] [5378] Fix warning about variables used uninitialized Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5378 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5378 Author: blueswir1 Date: 2008-10-01 19:39:40 +0000 (Wed, 01 Oct 2008) Log Message: ----------- Fix warning about variables used uninitialized Modified Paths: -------------- trunk/slirp/socket.c Modified: trunk/slirp/socket.c =================================================================== --- trunk/slirp/socket.c 2008-10-01 19:38:09 UTC (rev 5377) +++ trunk/slirp/socket.c 2008-10-01 19:39:40 UTC (rev 5378) @@ -116,6 +116,8 @@ len = sb->sb_datalen - sb->sb_cc; iov[0].iov_base = sb->sb_wptr; + iov[1].iov_base = NULL; + iov[1].iov_len = 0; if (sb->sb_wptr < sb->sb_rptr) { iov[0].iov_len = sb->sb_rptr - sb->sb_wptr; /* Should never succeed, but... */ @@ -319,6 +321,8 @@ len = sb->sb_cc; iov[0].iov_base = sb->sb_rptr; + iov[1].iov_base = NULL; + iov[1].iov_len = 0; if (sb->sb_rptr < sb->sb_wptr) { iov[0].iov_len = sb->sb_wptr - sb->sb_rptr; /* Should never succeed, but... */