fix Qgets for when zlib isn't available

This commit is contained in:
Bill Currie 2004-02-29 07:12:05 +00:00
parent 7b5535cb8f
commit 7f3d5164e6

View file

@ -356,12 +356,13 @@ Qgets (QFile *file, char *buf, int count)
}
if (file->file)
buf = fgets (buf, count, file->file);
else {
#ifdef HAVE_ZLIB
else
buf = gzgets (file->gzfile, buf, count);
#else
return 0;
#endif
}
return buf ? ret : 0;
}