Skip to content
Commit 7505960d authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Remove dead code.

The third loop on i that was here before this commit - this:

	for (; i < ipbytes; i++) {
		if (p[i] != 0)
			return (ISC_R_MASKNONCONTIG);
		i++;
	}

could never be reached, because at the end of the second loop it is
necessarily true that either an error return has occurred or i >= ipbytes.

Harmless bug, but the dead code caused a compiler warning under clang.
Mentioned in GitLab issue #71.
parent b2efeade
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment