summaryrefslogtreecommitdiff
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-09 14:02:50 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-09 14:02:50 +0000
commitc3a928338e7878ddd9f5eeab17d05d52c92c9198 (patch)
tree4bb2863821fce42fb2ab748de9bd34e7880b91ed /linux-user/main.c
parentb2a7081acb46b0cdcbec0346672d86fc77ebfeb5 (diff)
downloadqemu-c3a928338e7878ddd9f5eeab17d05d52c92c9198.tar.gz
Use qemu_mallocz to allocate new thread state. Remove redundant memset.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4712 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/main.c')
-rw-r--r--linux-user/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 1f68766f0f..6b4d8d72c9 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -2183,11 +2183,11 @@ void usage(void)
THREAD CPUState *thread_env;
+/* Assumes contents are already zeroed. */
void init_task_state(TaskState *ts)
{
int i;
- memset(ts, 0, sizeof(TaskState));
ts->used = 1;
ts->first_free = ts->sigqueue_table;
for (i = 0; i < MAX_SIGQUEUE_SIZE - 1; i++) {