Selaa lähdekoodia

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

Nick Mathewson 9 vuotta sitten
vanhempi
commit
0b3ae7d9e5
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  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. */