diff options
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/q_shared.h | 1 | ||||
-rw-r--r-- | src/qcommon/vm.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index 259300ed..23cab99c 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -148,6 +148,7 @@ typedef int intptr_t; // vsnprintf is ISO/IEC 9899:1999 // abstracting this to make it portable int Q_vsnprintf(char *str, size_t size, const char *format, va_list ap); + #define Q_snprintf _snprintf #else #include <stdint.h> diff --git a/src/qcommon/vm.c b/src/qcommon/vm.c index d6d589d2..18be5331 100644 --- a/src/qcommon/vm.c +++ b/src/qcommon/vm.c @@ -575,7 +575,7 @@ it will attempt to load as a system dll vm_t *VM_Create( const char *module, intptr_t (*systemCalls)(intptr_t *), vmInterpret_t interpret ) { vm_t *vm; - vmHeader_t *header; + vmHeader_t *header = NULL; int i, remaining, retval; char filename[MAX_OSPATH]; void *startSearch = NULL; |