]> git.ipfire.org Git - pakfire.git/commitdiff
request: Use correct pointer size for array allocation
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Jun 2021 13:18:54 +0000 (13:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Jun 2021 13:18:54 +0000 (13:18 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/request.c

index 8187d7bca4378614f3537bb0351705489400ebd7..51ea7d83e6b8de2a45be95b57d9bb51704492fbc 100644 (file)
@@ -206,7 +206,7 @@ static int pakfire_request_get_problems(struct pakfire_request* request,
                return 0;
 
        // Allocate array
-       *problems = calloc(count + 1, sizeof(*problems));
+       *problems = calloc(count + 1, sizeof(**problems));
        if (!*problems)
                return 1;