From: Wouter Wijngaards Date: Thu, 14 Oct 2010 08:13:33 +0000 (+0000) Subject: remove compile warning on Ubuntu X-Git-Tag: release-1.4.7rc1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abe1057c41dd2555b29452cc04d4b62ed63d23b6;p=thirdparty%2Funbound.git remove compile warning on Ubuntu git-svn-id: file:///svn/unbound/trunk@2288 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index 25e2d72c9..26173fa49 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -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);