From: Dale Weiler Date: Sat, 22 Jun 2013 00:00:17 +0000 (+0000) Subject: Fix uninitialized data X-Git-Tag: v0.3.0~90 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=52e7394418607fc3832ae8bf36886a449b907389;p=xonotic%2Fgmqcc.git Fix uninitialized data --- diff --git a/code.c b/code.c index 747e589..b23a8d8 100644 --- a/code.c +++ b/code.c @@ -142,6 +142,7 @@ static void code_create_header(code_t *code, prog_header *code_header) { code_header->strings.offset = code_header->globals.offset + (sizeof(int32_t) * vec_size(code->globals)); code_header->strings.length = vec_size(code->chars); code_header->version = 6; + code_header->skip = 0; if (OPTS_OPTION_BOOL(OPTION_FORCECRC)) code_header->crc16 = OPTS_OPTION_U16(OPTION_FORCED_CRC);