diff --git a/lib/paranoia/paranoia.c b/lib/paranoia/paranoia.c index 3379faf..5fc208b 100644 --- a/lib/paranoia/paranoia.c +++ b/lib/paranoia/paranoia.c @@ -1,5 +1,6 @@ /* - Copyright (C) 2004, 2005, 2006, 2008, 2011 Rocky Bernstein + Copyright (C) 2004, 2005, 2006, 2008, 2011, 2017 + Rocky Bernstein Copyright (C) 2014 Robert Kausch Copyright (C) 1998 Monty xiphmont@mit.edu @@ -1019,6 +1020,9 @@ i_iterate_stage2(cdrom_paranoia_t *p, long searchbegin=max(fbv-p->dynoverlap,rb(root)); sort_info_t *i=p->sortcache; long j; + long best_matchbegin = -1; + long best_matchend = -1; + long best_offset = -1; /* Initialize the "sort cache" index to allow for fast searching * through the verified fragment between (fbv,fev). (The index will @@ -1026,10 +1030,6 @@ i_iterate_stage2(cdrom_paranoia_t *p, */ sort_setup(i, fv(v), &fb(v), fs(v), fbv, fev); - long best_matchbegin = -1; - long best_matchend = -1; - long best_offset = -1; - /* ??? Why 23? */ for(j=searchbegin; j