CLANG fixes

various dead variable sets,
one possible NULL variable use in strcmp,
one possible unitialized variable use