From 42315c806f5263582ed050e69acecc612b593475 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 14 Aug 2009 14:47:44 -0700 Subject: Zero thread structure so we don't continue with a bogus signal. R=rsc APPROVED=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33249 CL=33296 --- src/libmach/linux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libmach/linux.c') 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; -- cgit v1.2.3