commit 41c4e0d6814ba883eecb05f30e83b6ba71940a96
Author: Oswald Buddenhagen <[email protected]>
Date: Tue Oct 24 17:39:24 2006 +0000
backport: don't crash on truncating db
src/drv_maildir.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index 2b91890..f65f213 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -345,7 +345,8 @@ maildir_init_uid( maildir_store_t *ctx, const char *msg )
ctx->uvok = 0;
#ifdef USE_DB
if (ctx->db) {
- ctx->db->truncate( ctx->db, 0, 0 /* &u_int32_t_dummy */, 0 );
+ u_int32_t count;
+ ctx->db->truncate( ctx->db, 0, &count, 0 );
return maildir_set_uid( ctx, 0, 0 );
}
#endif /* USE_DB */
@@ -475,7 +476,7 @@ maildir_scan( maildir_store_t *ctx, msglist_t *msglist )
DBC *dbc;
#endif /* USE_DB */
msg_t *entry;
- int i, j, uid, bl, ml, fnl, ret;
+ int i, j, uid, bl, fnl, ret;
struct stat st;
char buf[_POSIX_PATH_MAX], nbuf[_POSIX_PATH_MAX];
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel