Item12997: fix potential use of uninitial variable