]> granicus.if.org Git - libevent/commitdiff
Fix a logic error in test_evbuffer_freeze
authorNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:32:21 +0000 (19:32 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 6 Aug 2013 23:32:21 +0000 (19:32 -0400)
test/regress_buffer.c

index c527204acde459bea045c39f28aa1b70d3ffe92f..0a7c216b45523fd2531ce05732f1fe962c1fd360 100644 (file)
@@ -1999,7 +1999,7 @@ test_evbuffer_freeze(void *ptr)
        FREEZE_EQ(r, 0, -1);
        r = evbuffer_reserve_space(buf, 10, v, 1);
        FREEZE_EQ(r, 1, -1);
-       if (r == 0) {
+       if (r == 1) {
                memset(v[0].iov_base, 'X', 10);
                v[0].iov_len = 10;
        }