[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Maybe this will make coverity not care that this check is dead. CID 1268063



commit 0b3ae7d9e5bd08011dd90436523a9e93b3bd81ce
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Feb 16 15:44:18 2015 -0500

    Maybe this will make coverity not care that this check is dead. CID 1268063
---
 src/or/dirserv.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 1504b3b..384124d 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. */

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits