collect2.c (ignore_library): Avoid premature post-increment and null deference.