From: Nick Mathewson Date: Mon, 16 Feb 2015 20:44:18 +0000 (-0500) Subject: Maybe this will make coverity not care that this check is dead. CID 1268063 X-Git-Tag: tor-0.2.6.3-alpha~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b3ae7d9e5bd08011dd90436523a9e93b3bd81ce;p=thirdparty%2Ftor.git Maybe this will make coverity not care that this check is dead. CID 1268063 --- diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 1504b3b450..384124df59 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -3329,10 +3329,7 @@ validate_recommended_package_line(const char *line) cp = end_of_word + 1; } - if (n_entries == 0) - return 0; - - return 1; + return (n_entries == 0) ? 0 : 1; } /** Release all storage used by the directory server. */