fix uninitialized var (caught by clang-analyzer)
remove unused name (clang-analyzer)
avoid passing uninitialized var (clang-analyzer)
some sparse warnings