Browse Source

Maybe this will make coverity not care that this check is dead. CID 1268063

Nick Mathewson 9 years ago
parent
commit
0b3ae7d9e5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/or/dirserv.c

+ 1 - 4
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. */