summaryrefslogtreecommitdiff
path: root/src/control/Script.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-07-01 15:12:25 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-07-01 15:12:25 +0300
commit779d4e02a43fe19e8a0509a9beccf24d9083ebe5 (patch)
treede8618a979e8e12b7c457274bb044871050da346 /src/control/Script.cpp
parentda93b0a078b728051bb3ad185956a6715f397c2d (diff)
little fix
Diffstat (limited to 'src/control/Script.cpp')
-rw-r--r--src/control/Script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 934571ef..40bbd0cf 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -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
}