8877d1dbe6
declaring it in an inner scope and then using it via a pointer in the outer scope. Reported by: Coverity CID: 605895