fix gh-1381 c linker crash with not used inputs.
pep8
fix crash just introduced in unfrequent cases.
Merge pull request #1666 from nouiz/gh-1381

fix gh-1381 c linker crash with not used inputs.