The error handling wasn't correct. In error case call break from
within the for loop doesn't break out of the switch handling as
expected.
Fix for:
CID
1297888 (#1 of 2): Unused value (UNUSED_VALUE)
assigned_value: Assigning value -22 to result here, but that
stored value is overwritten before it can be used.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
resp.clones.push_back(ci);
}
+ if (result < 0) {
+ break;
+ }
if (ssc->snapset.head_exists &&
!ctx->obc->obs.oi.is_whiteout()) {
assert(obs.exists);