aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/indexamajig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 5176c9cf..a1a08150 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -799,7 +799,7 @@ int main(int argc, char *argv[])
free(det->panels);
free(det);
cell_free(cell);
- fclose(fh);
+ if ( fh != stdout ) fclose(fh);
STATUS("There were %i images. %i could be indexed, of which %i"
" looked sane.\n", n_images, qargs.n_indexable, qargs.n_sane);