Fix potential use of unitialized variable revealed by static analysis