aboutsummaryrefslogtreecommitdiff
path: root/libsylph/procmsg.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-01-16 05:58:39 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-01-16 05:58:39 +0000
commit6b33c662504a390ccb55c966c91913bd2bea766d (patch)
tree1c9daf1d00bd84d00359131e5ac9178fd98434e5 /libsylph/procmsg.c
parentcdc655c88e7237f3b4d75a011b8f3d52d9050682 (diff)
procmsg_open_data_file(): fixed a bug that the version of a data file was not checked when the file couldn't be opened with EACCES and reopened.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1486 ee746299-78ed-0310-b773-934348b2243d
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 ||