Properly initialize variable.

Fixes #3658