Subject: | dead code in encengine.c:do_encode() |
Picked up by running Coverity Scan on blead perl.
This code checks dst:
if (dst) {
if (oend <= dend) {
while (d < oend)
*d++ = *out++;
}
else {
/* Out of space */
code = ENCODE_NOSPACE;
break;
}
}
else
d = oend;
but at this point dst must be non-NULL because of the earlier check:
if (!dst)
return ENCODE_NOSPACE;
Tony