]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
remove compile warning on Ubuntu
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 14 Oct 2010 08:13:33 +0000 (08:13 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 14 Oct 2010 08:13:33 +0000 (08:13 +0000)
git-svn-id: file:///svn/unbound/trunk@2288 be551aaa-1e26-0410-a405-d3ace91eadb9

smallapp/unbound-anchor.c

index 25e2d72c91985b8cd2ea8bd622b725802b4be31f..26173fa497fd012e325692f5c3fcdbaa61fe4760 100644 (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);