From ac22182531bc27eceae8c8f10b32f2b5e243ee56 Mon Sep 17 00:00:00 2001 From: nila Date: Tue, 26 Jan 2021 11:03:39 +0100 Subject: [PATCH] lib/imagery: Fix file size check (#1274) Fixes -Wtautological-compare compiler warning. Co-authored-by: Markus Metz --- lib/imagery/iscatt_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imagery/iscatt_core.c b/lib/imagery/iscatt_core.c index 27dce32b9ec..7d1673fd668 100644 --- a/lib/imagery/iscatt_core.c +++ b/lib/imagery/iscatt_core.c @@ -526,7 +526,7 @@ static int compute_scatts_from_chunk_row(struct scCats *scatt_conds, ("Unable to read from category raster condition file.")); return -1; } - if (n_pixs != n_pixs) { + if (n_pixs != (row_size) / sizeof(unsigned char)) { G_free(rast_pixs); G_free(belongs_pix); G_warning(_