summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2021-10-18 11:44:44 -0400
committerColin Walters <walters@verbum.org>2021-10-18 11:44:44 -0400
commit58dc6a08b49384cbde3346f6b0675d684fe7c8db (patch)
tree9db4b8bfd2b1b42265e7b3c47c852694029435c1
parentfda41e8d249e479a02f67c7b3e31c98f0bb8d553 (diff)
downloadostree-58dc6a08b49384cbde3346f6b0675d684fe7c8db.tar.gz
tests/rollsum: Use `g_malloc` not `malloc`
To pacify gcc's `-fanalyzer`.
-rw-r--r--tests/test-rollsum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-rollsum.c b/tests/test-rollsum.c
index 08c78b66..08aea235 100644
--- a/tests/test-rollsum.c
+++ b/tests/test-rollsum.c
@@ -75,8 +75,8 @@ test_rollsum (void)
#define MAX_BUFFER_SIZE 1000000
gsize i;
int len;
- g_autofree unsigned char *a = malloc (MAX_BUFFER_SIZE);
- g_autofree unsigned char *b = malloc (MAX_BUFFER_SIZE);
+ g_autofree unsigned char *a = g_malloc (MAX_BUFFER_SIZE);
+ g_autofree unsigned char *b = g_malloc (MAX_BUFFER_SIZE);
g_autoptr(GRand) rand = g_rand_new ();
/* These two buffers produce the same crc32. */