summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index ea3c6305..ea8dd169 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -407,7 +407,8 @@ select_read(keeploc_t * locmem, int sr_mode)
strcmp(subject(fhs[i].title), keyword))
continue;
++count;
- fhs[i].money = reference | FHR_REFERENCE;
+ if(p == NULL)
+ fhs[i].money = reference | FHR_REFERENCE;
write(fd, &fhs[i], sizeof(fileheader_t));
}
} // end while