Skip to content

Commit

Permalink
i.landsat.acca: Fix uninitialized variable issue (OSGeo#3958)
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Vasudeo Desai <sdesai8@vclvm179-48.vcl.ncsu.edu>
  • Loading branch information
2 people authored and a0x8o committed Jul 2, 2024
1 parent fb2b1e4 commit f720eb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imagery/i.landsat.acca/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ int main(int argc, char *argv[])
in_name = band_prefix->answer;

for (i = BAND2; i <= BAND6; i++) {
band[i].name[0] = '\0';
sprintf(band[i].name, "%s%d%c", in_name, i + 2,
(i == BAND6 && !sat5->answer ? '1' : '\0'));
band[i].fd = check_raster(band[i].name);
Expand Down

0 comments on commit f720eb6

Please sign in to comment.