fixed a undeclared variable warning
Merge pull request #50 from lmacken/master

 fixed an undeclared variable warning