check return value of strchr
Merge pull request #4 from freestyl3r/master

Fix for #3. (segfault on malformed .desktop files)