tests/rollsum: Use g_malloc not malloc

To pacify gcc's `-fanalyzer`.
This commit is contained in:
Colin Walters 2021-10-18 11:44:44 -04:00
parent fda41e8d24
commit 58dc6a08b4

View File

@ -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. */