aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdbstub.c2
1 files changed, 0 insertions, 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;