aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsylph/procmsg.c')
-rw-r--r--libsylph/procmsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libsylph/procmsg.c b/libsylph/procmsg.c
index 872eb1b4..3c9a430b 100644
--- a/libsylph/procmsg.c
+++ b/libsylph/procmsg.c
@@ -834,7 +834,9 @@ FILE *procmsg_open_data_file(const gchar *file, guint version,
} else {
debug_print("Mark/Cache file '%s' not found\n", file);
}
- } else {
+ }
+
+ if (fp) {
if (buf && buf_size > 0)
setvbuf(fp, buf, _IOFBF, buf_size);
if (fread(&data_ver, sizeof(data_ver), 1, fp) != 1 ||