From fc405d53b73a2d73393cb97f684863d17b583e38 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 23 May 2023 09:32:37 +0000 Subject: [PATCH] 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@ --- regress/lib/libutil/imsg/ibuf_test.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1