aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/tier0
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
committerJoe Ludwig <[email protected]>2013-07-04 11:20:31 -0700
commit77b376f8a0d8d172c51729762f80bb394534aa41 (patch)
tree79897a015745704f7202eaa6648c18f2e5312df4 /mp/src/public/tier0
parentAdding a CONTRIBUTING file so the rights that GitHub users grant to Valve wit... (diff)
downloadsource-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.tar.xz
source-sdk-2013-77b376f8a0d8d172c51729762f80bb394534aa41.zip
* Switched the SDK from checked-in projects to VPC, the Valve Project Creator. See the Getting Started document on the wiki for details.
* Pulled in bug fixes from HL2 and HL2MP.
Diffstat (limited to 'mp/src/public/tier0')
-rw-r--r--mp/src/public/tier0/memoverride.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/mp/src/public/tier0/memoverride.cpp b/mp/src/public/tier0/memoverride.cpp
index 84c8dcf3..29495903 100644
--- a/mp/src/public/tier0/memoverride.cpp
+++ b/mp/src/public/tier0/memoverride.cpp
@@ -737,9 +737,16 @@ int __cdecl _CrtDbgReport( int nRptType, const char * szFile,
{
static char output[1024];
va_list args;
- va_start( args, szFormat );
- _vsnprintf( output, sizeof( output )-1, szFormat, args );
- va_end( args );
+ if ( szFormat )
+ {
+ va_start( args, szFormat );
+ _vsnprintf( output, sizeof( output )-1, szFormat, args );
+ va_end( args );
+ }
+ else
+ {
+ output[0] = 0;
+ }
return g_pMemAlloc->CrtDbgReport( nRptType, szFile, nLine, szModule, output );
}