From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LncKy-0002qz-Pp for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:28:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LncKx-0002qB-KP for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:28:51 -0400 Received: from [199.232.76.173] (port=56967 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LncKx-0002pv-Ep for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:28:51 -0400 Received: from savannah.gnu.org ([199.232.41.3]:54363 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 1LncKx-00067C-05 for qemu-devel@nongnu.org; Sat, 28 Mar 2009 13:28:51 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LncKw-0005f2-BR for qemu-devel@nongnu.org; Sat, 28 Mar 2009 17:28:50 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LncKw-0005ey-3D for qemu-devel@nongnu.org; Sat, 28 Mar 2009 17:28:50 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Sat, 28 Mar 2009 17:28:50 +0000 Subject: [Qemu-devel] [6897] gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka) 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: 6897 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6897 Author: aliguori Date: 2009-03-28 17:28:49 +0000 (Sat, 28 Mar 2009) Log Message: ----------- gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka) Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/gdbstub.c Modified: trunk/gdbstub.c =================================================================== --- trunk/gdbstub.c 2009-03-28 17:28:45 UTC (rev 6896) +++ trunk/gdbstub.c 2009-03-28 17:28:49 UTC (rev 6897) @@ -2216,8 +2216,6 @@ setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *)&val, sizeof(val)); s = qemu_mallocz(sizeof(GDBState)); - - memset (s, 0, sizeof (GDBState)); s->c_cpu = first_cpu; s->g_cpu = first_cpu; s->fd = fd;