mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
[qwaq] Fix a linker warning that had been hiding
This commit is contained in:
parent
fc44582726
commit
75f38f456b
1 changed files with 3 additions and 1 deletions
|
@ -80,9 +80,11 @@ static QFile *
|
||||||
open_file (const char *path, int *len)
|
open_file (const char *path, int *len)
|
||||||
{
|
{
|
||||||
QFile *file = Qopen (path, "rbz");
|
QFile *file = Qopen (path, "rbz");
|
||||||
|
char errbuff[1024];
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
Sys_Printf ("%s\n", sys_errlist[errno]);
|
strerror_r(errno, errbuff, sizeof (errbuff));
|
||||||
|
Sys_Printf ("%s\n", errbuff);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*len = Qfilesize (file);
|
*len = Qfilesize (file);
|
||||||
|
|
Loading…
Reference in a new issue