Skip to content

Commit

Permalink
r.compress: Reversing logic to fix Failure Reporting, fixes #1802 (#1812
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Lucifergene committed Aug 22, 2021
1 parent 0663dd6 commit e1756b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raster/r.compress/main.c
Expand Up @@ -94,10 +94,10 @@ int main(int argc, char *argv[])
exit(EXIT_SUCCESS);
}

stat = EXIT_FAILURE;
stat = EXIT_SUCCESS;
for (n = 0; (name = map->answers[n]); n++)
if (process(name, uncompress->answer))
stat = EXIT_SUCCESS;
stat = EXIT_FAILURE;
exit(stat);
}

Expand Down

0 comments on commit e1756b5

Please sign in to comment.