assert no stray TUIDs
This commit is contained in:
		
							parent
							
								
									8e49300cf7
								
							
						
					
					
						commit
						e63e16ab45
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "isync.h"
 | 
					#include "isync.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <assert.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <limits.h>
 | 
					#include <limits.h>
 | 
				
			||||||
#include <stdlib.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;
 | 
										opts[M] |= OPEN_NEW|OPEN_FIND, svars->state[M] |= ST_FIND_OLD;
 | 
				
			||||||
				else if (srec->uid[S] == -2)
 | 
									else if (srec->uid[S] == -2)
 | 
				
			||||||
					opts[S] |= OPEN_NEW|OPEN_FIND, svars->state[S] |= ST_FIND_OLD;
 | 
										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] );
 | 
						svars->drv[M]->prepare_opts( ctx[M], opts[M] );
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue