patch from Honza Horak using Coverity's static analysis tool.

This commit is contained in:
rocky
2011-05-30 15:19:22 -04:00
parent 9be0980337
commit 940b7cd848
20 changed files with 52 additions and 28 deletions

View File

@@ -1357,14 +1357,14 @@ i_stage2_each(root_block *root, v_fragment_t *v,
void(*callback)(long int, paranoia_cb_mode_t))
{
/* If this fragment has already been merged & freed, abort. */
if (!v || !v->one) return(0);
cdrom_paranoia_t *p=v->p;
/* ??? Why do we round down to an even dynoverlap? */
long dynoverlap=p->dynoverlap/2*2;
/* If this fragment has already been merged & freed, abort. */
if (!v || !v->one) return(0);
/* If there's no verified root yet, abort. */
if (!rv(root)){
return(0);