Fix static analyzer issues with uninitialized values