mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
lib: Use g_new0 rather than g_malloc0
Port some of the g_malloc0 users to g_new0.
This commit is contained in:
committed by
Benjamin Berg
parent
d1fb1e26f3
commit
f2b932960e
@@ -426,7 +426,7 @@ fpi_assemble_lines (struct fpi_line_asmbl_ctx *ctx,
|
||||
GSList *row1, *row2;
|
||||
float y = 0.0;
|
||||
int line_ind = 0;
|
||||
int *offsets = (int *) g_malloc0 ((num_lines / 2) * sizeof (int));
|
||||
int *offsets = g_new0 (int, num_lines / 2);
|
||||
unsigned char *output = g_malloc0 (ctx->line_width * ctx->max_height);
|
||||
FpImage *img;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user