diff --git a/src/Log.h b/src/Log.h index 58f4de41..e97012a2 100644 --- a/src/Log.h +++ b/src/Log.h @@ -27,6 +27,8 @@ inline void LOG( u16 type, const char * format, ... ) { if (type > LOG_LEVEL) return; FILE *dumpFile = fopen( "gliden64.log", "a+" ); + if (dumpFile == NULL) + return; va_list va; va_start( va, format ); vfprintf( dumpFile, format, va );