From dc6b4f47674d92470bfbd50f8af1123b2d40e0c3 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 14 Aug 2009 14:47:44 -0700 Subject: [PATCH] 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(+) 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; -- 2.48.1