Fixed 'control may reach end of non void function' warning
Merge pull request #8 from eriksundin/master

Fixed 'control may reach end of non void function' warning