浏览代码

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

Nick Mathewson 10 年之前
父节点
当前提交
0b3ae7d9e5
共有 1 个文件被更改,包括 1 次插入4 次删除
  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. */