diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c index 8fb5564d20..01ce4c8f91 100644 --- a/code/qcommon/vm.c +++ b/code/qcommon/vm.c @@ -1960,6 +1960,7 @@ intptr_t QDECL VM_Call( vm_t *vm, int nargs, int callnum, ... ) //rcg010207 - see dissertation at top of VM_DllSyscall() in this file. int32_t args[MAX_VMMAIN_CALL_ARGS-1]; va_list ap; + memset( args, 0, sizeof( args ) ); va_start( ap, callnum ); for ( i = 0; i < nargs; i++ ) { args[i] = va_arg( ap, int32_t );