[or-cvs] [tor/master] Make a NULL check in test_dir.c non-redundant.

Nick Mathewson nickm at seul.org
Sun Sep 27 16:11:22 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Sun, 27 Sep 2009 12:01:29 -0400
Subject: Make a NULL check in test_dir.c non-redundant.
Commit: a4d6d83051afe7a3018882e989b0efaa9b1c7908

Should quiet a coverity warning.
---
 src/test/test_dir.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index c9b0a86..1ad4100 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -76,6 +76,8 @@ test_dir_formats(void)
   pk2 = pk_generate(1);
   pk3 = pk_generate(2);
 
+  test_assert(pk1 && pk2 && pk3);
+
   get_platform_str(platform, sizeof(platform));
   r1 = tor_malloc_zero(sizeof(routerinfo_t));
   r1->address = tor_strdup("18.244.0.1");
-- 
1.5.6.5




More information about the tor-commits mailing list