Check added to prevent crash (out of memory) with zero-sized files
Merge pull request #2 from lauhub/master

Corrected out of memory error with zero-sized files