From: Wolfgang (Blub) Bumiller Date: Wed, 15 Aug 2012 10:11:15 +0000 (+0200) Subject: Fix memset on the parser... X-Git-Tag: 0.1-rc1~278 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e5124ecf2f9f79758617639b29f53542f351a238;p=xonotic%2Fgmqcc.git Fix memset on the parser... --- diff --git a/parser.c b/parser.c index f8f5e97..92f49e9 100644 --- a/parser.c +++ b/parser.c @@ -1987,7 +1987,7 @@ bool parser_init() if (!parser) return false; - memset(parser, 0, sizeof(parser)); + memset(parser, 0, sizeof(*parser)); MEM_VECTOR_INIT(parser, globals); MEM_VECTOR_INIT(parser, locals);