aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-28 17:28:49 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-28 17:28:49 +0000
commit0fe17f5efb2f60393efb9ad9038aae4d056111ff (patch)
treee7ea716aa79cbca0a4a5ad7c75a8b97550498197 /gdbstub.c
parent34b39c2ba6cc08239a707b52bfb2886df2aa8dec (diff)
downloadqemu-0fe17f5efb2f60393efb9ad9038aae4d056111ff.zip
qemu-0fe17f5efb2f60393efb9ad9038aae4d056111ff.tar.gz
qemu-0fe17f5efb2f60393efb9ad9038aae4d056111ff.tar.bz2
gdbstub: Drop redundant memset after qemu_mallocz (Jan Kiszka)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6897 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 8876c1d..0860abd 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;