From: Nick Mathewson Date: Tue, 6 Aug 2013 23:32:21 +0000 (-0400) Subject: Fix a logic error in test_evbuffer_freeze X-Git-Tag: release-2.1.4-alpha~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=776588468ba7afd17e721227b41723bddb8a2d04;p=libevent Fix a logic error in test_evbuffer_freeze --- diff --git a/test/regress_buffer.c b/test/regress_buffer.c index c527204a..0a7c216b 100644 --- a/test/regress_buffer.c +++ b/test/regress_buffer.c @@ -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; }