We do not need to check j for size if we previously set it. Move
the verification check into its own branch.
Change-Id: I18766f1ec9733fc5065c384256d9f2a5af69a497
Signed-off-by: Robert Varga <[email protected]>
dst[INADDR6SZ - i] = dst[colonp + n - i];
dst[colonp + n - i] = 0;
}
- j = INADDR6SZ;
+ } else {
+ Verify.verify(j == INADDR6SZ, "Overrun in parsing of '%s', should not occur", addrStr);
}
- Verify.verify(j == INADDR6SZ, "Overrun in parsing of '%s', should not occur", addrStr);
return dst;
}
}