From: Austin Clements Date: Fri, 14 Aug 2009 21:47:44 +0000 (-0700) Subject: Zero thread structure so we don't continue with a bogus X-Git-Tag: weekly.2009-11-06~865 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dc6b4f47674d92470bfbd50f8af1123b2d40e0c3;p=gostls13.git 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 --- diff --git a/src/libmach/linux.c b/src/libmach/linux.c index 20e62ee7a1..46724b87e2 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;