Skip to content

Commit

Permalink
Avoid the creation of weirdly named file '' on Windows during the spe…
Browse files Browse the repository at this point in the history
…c runs.
  • Loading branch information
vvs committed Apr 8, 2010
1 parent 1af6cf4 commit 0458992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilsfuncs.cpp
Expand Up @@ -184,7 +184,7 @@ void logV(bool appendSysError, bool showMsgBox, const char *format, va_list args
strncat(msg, sysErr, 4096 - strlen(msg));
}

if (!gLogFileName.empty()) {
if (!gLogFileName.empty() && gLogFileName != "''") {
FILE *file = fopen(gLogFileName.c_str(), "a");
if (file) {
fprintf(file, "%s\n", msg);
Expand Down

0 comments on commit 0458992

Please sign in to comment.