little fix

This commit is contained in:
Nikolay Korolev 2020-07-01 15:12:25 +03:00
parent da93b0a078
commit 779d4e02a4
1 changed files with 2 additions and 1 deletions

View File

@ -1356,7 +1356,8 @@ static void PrintToLog(const char* format, ...)
printf("%s", tmp);
#if SCRIPT_LOG_FILE_LEVEL == 1 || SCRIPT_LOG_FILE_LEVEL == 2
fwrite(tmp, 1, strlen(tmp), dbg_log);
if (dbg_log)
fwrite(tmp, 1, strlen(tmp), dbg_log);
#endif
}