isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit e63e16ab4540cb0f1fe0ad00f5f4ad0540ba5bee
parent 8e49300cf7bd0c583d0f88c50ec3bf314c33056c
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat,  2 Nov 2013 23:32:42 +0100

assert no stray TUIDs

Diffstat:
Msrc/sync.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/sync.c b/src/sync.c @@ -22,6 +22,7 @@ #include "isync.h" +#include <assert.h> #include <stdio.h> #include <limits.h> #include <stdlib.h> @@ -973,6 +974,8 @@ box_selected( int sts, void *aux ) opts[M] |= OPEN_NEW|OPEN_FIND, svars->state[M] |= ST_FIND_OLD; else if (srec->uid[S] == -2) opts[S] |= OPEN_NEW|OPEN_FIND, svars->state[S] |= ST_FIND_OLD; + else + assert( !"sync record with stray TUID" ); } } svars->drv[M]->prepare_opts( ctx[M], opts[M] );