diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index 935c2cd47e..00a93d43c2 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -118,9 +118,13 @@ RageLog::RageLog() time(&cur_time); const struct tm *now = localtime(&cur_time); - this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d", - 1900+now->tm_year, now->tm_mon, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec ); - this->Trace( " " ); + if ( now ) + { + this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d", + 1900+now->tm_year, now->tm_mon, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec ); + this->Trace( " " ); + } + #if defined(HAVE_VERSION_INFO) this->Info("Compiled %s (build %lu)", version_time, version_num); #endif