Fix use of uninitialized variable