remove compile warning on Ubuntu

git-svn-id: file:///svn/unbound/trunk@2288 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2010-10-14 08:13:33 +00:00
parent 32a9e3a225
commit abe1057c41

View file

@ -389,7 +389,8 @@ read_cert_file(char* file)
exit(0);
}
/* read away newline after --END CERT-- */
(void)fgets(buf, (int)sizeof(buf), in);
if(!fgets(buf, (int)sizeof(buf), in))
break;
content = 1;
}
fclose(in);