Make a variable local so it's lifetime becomes more obvious.

NFC