Do not draw text from file if file not found

This commit is contained in:
jp9000
2014-08-24 08:31:03 -07:00
parent 97543def13
commit 0fca88dde9

View File

@@ -372,9 +372,11 @@ skip_font_load:;
bfree(srcdata->text_file);
srcdata->text_file = NULL;
}
else
else {
blog(LOG_WARNING,
"FT2-text: Failed to open %s for reading", tmp);
goto error;
}
srcdata->text_file = bstrdup(tmp);
if (chat_log_mode)