]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix uninitialized data
authorDale Weiler <killfieldengine@gmail.com>
Sat, 22 Jun 2013 00:00:17 +0000 (00:00 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 22 Jun 2013 00:00:17 +0000 (00:00 +0000)
code.c

diff --git a/code.c b/code.c
index 747e5892ebc04e0d0d7138951f43ad1e8fac56dd..b23a8d8b10ebf23b40cba5fec554cc3d7dd8b648 100644 (file)
--- 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);