# HG changeset patch # User michael # Date 1138908213 0 # Node ID 823fcde78b1bb3f460870bea33e31ee97dccb9c9 # Parent 2d9a65a1d9eaff223e08833ffc7754907d5db429 sanity checks for seeking diff -r 2d9a65a1d9ea -r 823fcde78b1b utils.c --- a/utils.c Thu Feb 02 15:21:19 2006 +0000 +++ b/utils.c Thu Feb 02 19:23:33 2006 +0000 @@ -1348,6 +1348,12 @@ pos_limit= pos_max; } + if(ts_min > ts_max){ + return -1; + }else if(ts_min == ts_max){ + pos_limit= pos_min; + } + no_change=0; while (pos_min < pos_limit) { #ifdef DEBUG_SEEK