- corrected some uninitialized vars identified by cppcheck