summaryrefslogtreecommitdiff
path: root/src/libmach/linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmach/linux.c')
-rw-r--r--src/libmach/linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmach/linux.c b/src/libmach/linux.c
index 20e62ee7a..46724b87e 100644
--- a/src/libmach/linux.c
+++ b/src/libmach/linux.c
@@ -199,6 +199,7 @@ attachthread(int pid, int tid, int *new, int newstate)
t = malloc(sizeof *t);
if(t == nil)
return nil;
+ memset(t, 0, sizeof *t);
thr[nthr++] = t;
t->pid = pid;