CVS commit by ossi: backport: don't crash on truncating db
M +3 -2 drv_maildir.c 1.8.2.3 --- isync/src/drv_maildir.c #1.8.2.2:1.8.2.3 @@ -346,5 +346,6 @@ maildir_init_uid( maildir_store_t *ctx, #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 ); } @@ -476,5 +477,5 @@ maildir_scan( maildir_store_t *ctx, msgl #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]; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel