aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-16 15:44:18 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-16 15:44:18 -0500
commit0b3ae7d9e5bd08011dd90436523a9e93b3bd81ce (patch)
tree96e28fc43c41a238ca653a0185a51392b8108a1b /src/or/dirserv.c
parent2fe139473dac978a8982d7759c5661588d2cfec5 (diff)
downloadtor-0b3ae7d9e5bd08011dd90436523a9e93b3bd81ce.tar.gz
tor-0b3ae7d9e5bd08011dd90436523a9e93b3bd81ce.zip
Maybe this will make coverity not care that this check is dead. CID 1268063
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c5
1 files changed, 1 insertions, 4 deletions
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. */