lib: Use g_new0 rather than g_malloc0

Port some of the g_malloc0 users to g_new0.
This commit is contained in:
Marco Trevisan (Treviño)
2019-11-20 13:41:35 +01:00
committed by Benjamin Berg
parent d1fb1e26f3
commit f2b932960e
3 changed files with 3 additions and 4 deletions

View File

@@ -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;