tests/rollsum: Use `g_malloc` not `malloc`
To pacify gcc's `-fanalyzer`.
This commit is contained in:
parent
fda41e8d24
commit
58dc6a08b4
|
|
@ -75,8 +75,8 @@ test_rollsum (void)
|
||||||
#define MAX_BUFFER_SIZE 1000000
|
#define MAX_BUFFER_SIZE 1000000
|
||||||
gsize i;
|
gsize i;
|
||||||
int len;
|
int len;
|
||||||
g_autofree unsigned char *a = malloc (MAX_BUFFER_SIZE);
|
g_autofree unsigned char *a = g_malloc (MAX_BUFFER_SIZE);
|
||||||
g_autofree unsigned char *b = malloc (MAX_BUFFER_SIZE);
|
g_autofree unsigned char *b = g_malloc (MAX_BUFFER_SIZE);
|
||||||
g_autoptr(GRand) rand = g_rand_new ();
|
g_autoptr(GRand) rand = g_rand_new ();
|
||||||
|
|
||||||
/* These two buffers produce the same crc32. */
|
/* These two buffers produce the same crc32. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue