From 85a77f8a64c0aed3cb74a8119aa0173804ced10e Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Fri, 26 May 2023 12:45:50 +0200 Subject: [PATCH] plug-ins/grid: Make sure dest_buffer is initialized Initialize to NULL at the very least --- plug-ins/common/grid.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plug-ins/common/grid.c b/plug-ins/common/grid.c index 4973f9e038..9f870a953a 100644 --- a/plug-ins/common/grid.c +++ b/plug-ins/common/grid.c @@ -413,14 +413,14 @@ grid (GimpImage *image, GimpDrawable *drawable, GimpPreview *preview) { - GeglBuffer *src_buffer; - GeglBuffer *dest_buffer; + GeglBuffer *src_buffer = NULL; + GeglBuffer *dest_buffer = NULL; const Babl *format; gint bytes; gint x_offset; gint y_offset; - guchar *dest; - guchar *buffer = NULL; + guchar *dest = NULL; + guchar *buffer = NULL; gint x, y; gboolean alpha; gboolean blend;