From abe1057c41dd2555b29452cc04d4b62ed63d23b6 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 14 Oct 2010 08:13:33 +0000 Subject: [PATCH] remove compile warning on Ubuntu git-svn-id: file:///svn/unbound/trunk@2288 be551aaa-1e26-0410-a405-d3ace91eadb9 --- smallapp/unbound-anchor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2