]> granicus.if.org Git - libevent/commitdiff
Fix a dead-code warning in unit tests. CID 1193548
authorNick Mathewson <nickm@torproject.org>
Thu, 18 Sep 2014 15:54:04 +0000 (11:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 18 Sep 2014 15:54:04 +0000 (11:54 -0400)
test/regress_http.c

index 363ebe67d0a1c42b382f7a53263e67161ba46086..7c8337a356b5641a27147f7ecc3d1bad2ed84ca5 100644 (file)
@@ -718,6 +718,7 @@ http_delete_test(void *arg)
 
        http = http_setup(&port, data->base, 0);
 
+       tt_assert(http);
        fd = http_connect("127.0.0.1", port);
        tt_int_op(fd, >=, 0);