1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

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@
This commit is contained in:
claudio 2023-05-23 09:32:37 +00:00
parent a5a54c4aaf
commit fc405d53b7

View File

@ -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);