shaderc: Fixed issue #768.

This commit is contained in:
Branimir Karadžić 2016-04-21 08:11:53 -07:00
parent 5aad5b12ef
commit 3be0c4091f
1 changed files with 1 additions and 1 deletions

View File

@ -1084,7 +1084,7 @@ void domsg(struct Global *global,
;
tp = file ? file->filename : 0;
Error(global, "%s\"%s\", line %d: %s: ",
MSG_PREFIX, tp, global->infile->fp?global->line:file->line, severity);
MSG_PREFIX, tp, global->infile?global->line:(file?file->line:0), severity);
if(global->error)
global->error(global->userdata, ErrorMessage[error], arg);
#if defined(UNIX)