Fix uninitialized vars found by coverity