]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
avoid gcc warning in fuzz test
authorDamien Miller <djm@mindrot.org>
Sun, 15 Sep 2024 03:30:13 +0000 (13:30 +1000)
committerDamien Miller <djm@mindrot.org>
Sun, 15 Sep 2024 03:30:13 +0000 (13:30 +1000)
regress/unittests/test_helper/fuzz.c

index 78b36654defcd527f20a7f71e56a847c7881bd54..9995b26a630a07d03670c79515592a65b235409b 100644 (file)
@@ -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);