From e8b1f7a12e66cd1f1cd74bd4a54f497de65544d4 Mon Sep 17 00:00:00 2001 From: gitlost Date: Mon, 27 Sep 2021 11:11:22 +0100 Subject: [PATCH] raster.c: fix clang garbage value warning --- backend/raster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/raster.c b/backend/raster.c index 2b0c03b1..14869343 100644 --- a/backend/raster.c +++ b/backend/raster.c @@ -1282,7 +1282,7 @@ static int plot_raster_default(struct zint_symbol *symbol, const int rotate_angl for (r = 0; r < scale_height; r++) { size_t scaled_row = r * scale_width; size_t image_row = (size_t) stripf(r / scaler) * image_width; - if (image_row && (image_row == prev_image_row + if (r && (image_row == prev_image_row || memcmp(pixelbuf + image_row, pixelbuf + prev_image_row, image_width) == 0)) { memcpy(scaled_pixelbuf + scaled_row, scaled_pixelbuf + scaled_row - scale_width, scale_width); } else {