From: Julian Seward Date: Wed, 12 Dec 2007 11:42:33 +0000 (+0000) Subject: Fix stupid error spotted by by Konstantin Serebryany. X-Git-Tag: svn/VALGRIND_3_4_0~1129 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42f6984a142737c2a322971fc37202f7339a89b2;p=thirdparty%2Fvalgrind.git Fix stupid error spotted by by Konstantin Serebryany. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7299 --- diff --git a/helgrind/hg_main.c b/helgrind/hg_main.c index e8105ddc01..7feb4642a0 100644 --- a/helgrind/hg_main.c +++ b/helgrind/hg_main.c @@ -582,7 +582,7 @@ static inline Bool is_sane_LockN ( Lock* lock ); /* fwds */ static Thread* mk_Thread ( SegmentID csegid ) { static Int indx = 1; - Thread* thread = hg_zalloc( sizeof(Lock) ); + Thread* thread = hg_zalloc( sizeof(Thread) ); thread->locksetA = HG_(emptyWS)( univ_lsets ); thread->locksetW = HG_(emptyWS)( univ_lsets ); thread->csegid = csegid;