From eed7848ab294a74ea7cc075d4bae9df00e174b38 Mon Sep 17 00:00:00 2001 From: "R. Bernstein" Date: Sat, 4 Feb 2017 22:14:10 -0500 Subject: [PATCH] Minor changes Also, see issue #5 --- lib/paranoia/paranoia.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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