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

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



commit f50558ce8ce33339b86ac642d92a27430e066d62
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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);



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