]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Maybe this will make coverity not care that this check is dead. CID 1268063
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Feb 2015 20:44:18 +0000 (15:44 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 Feb 2015 20:44:18 +0000 (15:44 -0500)
src/or/dirserv.c

index 1504b3b450d3be015926efa985e9ce55fc485683..384124df591b3877cace9845cb3401bec529e607 100644 (file)
@@ -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. */