From: Damien Miller Date: Sun, 15 Sep 2024 03:30:13 +0000 (+1000) Subject: avoid gcc warning in fuzz test X-Git-Tag: V_9_9_P1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c1165fc78e8fe69b5df71f81a8f944554a68b53;p=thirdparty%2Fopenssh-portable.git avoid gcc warning in fuzz test --- diff --git a/regress/unittests/test_helper/fuzz.c b/regress/unittests/test_helper/fuzz.c index 78b36654d..9995b26a6 100644 --- a/regress/unittests/test_helper/fuzz.c +++ b/regress/unittests/test_helper/fuzz.c @@ -214,7 +214,7 @@ siginfo(int unused __attribute__((__unused__))) struct fuzz * fuzz_begin(u_int strategies, const void *p, size_t l) { - struct fuzz *ret = calloc(sizeof(*ret), 1); + struct fuzz *ret = calloc(1, sizeof(*ret)); assert(p != NULL); assert(ret != NULL);