One function used _input without making it local, causing its value to
leak into other functions. This broke the -f case. Fix that instance
and initialize all local variables that weren't already initialized.
Fixes: 170d0882903e
MFC after: 3 days