Skip to content

Commit

Permalink
i.landsat.acca: Fix uninitialized variable issue (#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
ShubhamDesai and Shubham Vasudeo Desai authored Jul 1, 2024
1 parent 28bbce8 commit 939ed83
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 939ed83

Please sign in to comment.