commit 1677843f7ace761b60c39be607401e0a848ec25b
Author: Oswald Buddenhagen <[email protected]>
Date:   Sat Nov 2 23:32:42 2013 +0100

    assert no stray TUIDs

 src/sync.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/sync.c b/src/sync.c
index 3a24e6e..35eed72 100644
--- 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] );

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to