assert no stray TUIDs

This commit is contained in:
Oswald Buddenhagen 2013-11-02 23:32:42 +01:00
parent 8e49300cf7
commit e63e16ab45

View File

@ -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] );