native: initialize maybe uninitialized variable

fixes #1118
Merge pull request #1177 from LudwigOrtmann/issue-1118

native: initialize maybe uninitialized variable