From 0fe17f5efb2f60393efb9ad9038aae4d056111ff Mon Sep 17 00:00:00 2001 From: aliguori Date: Sat, 28 Mar 2009 17:28:49 +0000 Subject: [PATCH] gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka) Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6897 c046a42c-6fe2-441c-8c8c-71466251a162 --- gdbstub.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index 8876c1d9a0..0860abdb4b 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -2216,8 +2216,6 @@ static void gdb_accept(void) 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;