summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-05-23 09:32:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-05-23 09:32:38 +0000
commitbce3295c82a586d492c1a7a45ef3cbb50cb05fec (patch)
tree37f657d26ada3370af57d133e677362dd5798dd2 /regress
parent24a22c4129b6de482d039d889bdb047bec112edd (diff)
Don't use ibuf_open(0) as test. 0 lenght ibufs make little sense and
result in a malloc(0) call which is no bueno. Use ibuf_open(1) instead. OK miod@
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libutil/imsg/ibuf_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/lib/libutil/imsg/ibuf_test.c b/regress/lib/libutil/imsg/ibuf_test.c
index a85b31a4d85..2e3702fa03d 100644
--- a/regress/lib/libutil/imsg/ibuf_test.c
+++ b/regress/lib/libutil/imsg/ibuf_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ibuf_test.c,v 1.1 2022/04/23 08:57:52 tobias Exp $
+/* $OpenBSD: ibuf_test.c,v 1.2 2023/05/23 09:32:37 claudio Exp $
*/
/*
* Copyright (c) Tobias Stoeckmann <tobias@openbsd.org>
@@ -29,7 +29,7 @@ int
test_ibuf_open(void) {
struct ibuf *buf;
- if ((buf = ibuf_open(0)) == NULL)
+ if ((buf = ibuf_open(1)) == NULL)
return 1;
ibuf_free(buf);