liballoc-c

C generic allocator interface
git clone https://git.sinitax.com/sinitax/liballoc-c
Log | Files | Refs | LICENSE | sfeed.txt

commit 78f735ad1c662228d322dd317888e3f05c84b667
parent b93172a2d59ff5c939bb58dd902c0db65efba8b6
Author: Louis Burda <quent.burda@gmail.com>
Date:   Sun, 21 May 2023 21:18:56 +0200

Fix test arg parsing

Diffstat:
Msrc/test.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test.c b/src/test.c @@ -12,7 +12,7 @@ main(int argc, const char **argv) struct test *test; int rc; - if (argc < 1) exit(1); + if (argc <= 1) exit(1); test = ga->alloc(ga, strtoull(argv[1], NULL, 10), &rc); if (!test) errx(1, "alloc: %s", strerror(rc));