[qwaq] Fix a linker warning that had been hiding

This commit is contained in:
Bill Currie 2020-03-22 13:49:42 +09:00
parent fc44582726
commit 75f38f456b

View file

@ -80,9 +80,11 @@ static QFile *
open_file (const char *path, int *len)
{
QFile *file = Qopen (path, "rbz");
char errbuff[1024];
if (!file) {
Sys_Printf ("%s\n", sys_errlist[errno]);
strerror_r(errno, errbuff, sizeof (errbuff));
Sys_Printf ("%s\n", errbuff);
return 0;
}
*len = Qfilesize (file);