Fix inflating zero-length data issue
Merge pull request #2 from duanyao/master

Fix inflating zero-length data issue