projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fclose -> m_fclose
[apps/madmutt.git]
/
lib-mx
/
mbox.c
diff --git
a/lib-mx/mbox.c
b/lib-mx/mbox.c
index
d1b2746
..
8e75038
100644
(file)
--- a/
lib-mx/mbox.c
+++ b/
lib-mx/mbox.c
@@
-657,14
+657,12
@@
static int mbox_sync_mailbox (CONTEXT * ctx, int unused __attribute__ ((unused))
}
}
}
}
- if (fclose (fp) != 0) {
- fp = NULL;
+ if (m_fclose(&fp) != 0) {
unlink (tempfile);
mutt_perror (tempfile);
mutt_sleep (5);
goto bail;
}
unlink (tempfile);
mutt_perror (tempfile);
mutt_sleep (5);
goto bail;
}
- fp = NULL;
/* Save the state of this folder. */
if (stat (ctx->path, &statbuf) == -1) {
/* Save the state of this folder. */
if (stat (ctx->path, &statbuf) == -1) {
@@
-709,11
+707,10
@@
static int mbox_sync_mailbox (CONTEXT * ctx, int unused __attribute__ ((unused))
}
}
}
}
- fclose (fp);
- fp = NULL;
+ m_fclose(&fp);
mbox_unlock_mailbox (ctx);
mbox_unlock_mailbox (ctx);
- if (
fclose (
ctx->fp) != 0 || i == -1) {
+ if (
m_fclose(&
ctx->fp) != 0 || i == -1) {
/* error occured while writing the mailbox back, so keep the temp copy
* around
*/
/* error occured while writing the mailbox back, so keep the temp copy
* around
*/