Skip to content

Commit

Permalink
lib/imagery: Fix file size check (OSGeo#1274)
Browse files Browse the repository at this point in the history
Fixes -Wtautological-compare compiler warning.

Co-authored-by: Markus Metz <markus.metz.giswork@gmail.com>
  • Loading branch information
2 people authored and marisn committed Mar 22, 2021
1 parent bfb986f commit ac22182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imagery/iscatt_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(_
Expand Down

0 comments on commit ac22182

Please sign in to comment.