Declare variable before using it.

I just noticed that in #285 I forgot to properly declare a variable.