Silence lack of return value check warning on fgets()

svn path=/trunk/netsurf/; revision=5954
This commit is contained in:
Daniel Silverstone 2009-01-02 14:46:54 +00:00
parent ebfb26038f
commit 70e1c9c7bf

View File

@ -72,7 +72,8 @@ void gtk_fetch_filetype_init(const char *mimefile)
while (!feof(fh)) {
char line[256], *ptr, *type, *ext;
fgets(line, 256, fh);
if (fgets(line, 256, fh) == NULL)
break;
if (!feof(fh) && line[0] != '#') {
ptr = line;