[tor-commits] [tor/master] Fix dead-assignment warning in test_shared_random.c

nickm at torproject.org nickm at torproject.org
Fri Jan 4 02:33:44 UTC 2019


commit f50558ce8ce33339b86ac642d92a27430e066d62
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Dec 17 09:27:40 2018 -0500

    Fix dead-assignment warning in test_shared_random.c
---
 src/test/test_shared_random.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/test/test_shared_random.c b/src/test/test_shared_random.c
index 433661f12..16e28afaf 100644
--- a/src/test/test_shared_random.c
+++ b/src/test/test_shared_random.c
@@ -309,6 +309,7 @@ test_get_start_time_of_current_run(void *arg)
 
     retval = parse_rfc1123_time("Mon, 19 Apr 2015 23:00:00 UTC",
                                 &mock_consensus.valid_after);
+    tt_int_op(retval, OP_EQ, 0);
 
     retval = parse_rfc1123_time("Mon, 20 Apr 2015 00:08:00 UTC",
                                 &current_time);





More information about the tor-commits mailing list