Fixes static analyzer warning
Merge pull request #42 from iosphere/analyzer_warnings

Fix static analyzer warning.