aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-09-27 16:56:51 +0200
committerThomas White <taw@physics.org>2018-09-27 16:56:51 +0200
commitffd48c0085f6f7a609079d0a4cfa2dd2a72c1e26 (patch)
treea4c66c10d726e1badb3fa74eb24b57bb82789f0b /src/process_image.c
parentb821461fff84478d5f3ee56aa001d2afe31e55b8 (diff)
Write in stream whether crystal was selected as a "hit" or not
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 89887436..10863fd3 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -285,6 +285,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
return;
}
free(rn);
+ image.hit = 0;
if ( iargs->stream_nonhits ) {
goto streamwrite;
@@ -292,6 +293,7 @@ void process_image(const struct index_args *iargs, struct pattern_args *pargs,
goto out;
}
}
+ image.hit = 1;
/* Index the pattern */
time_accounts_set(taccs, TACC_INDEXING);