mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-02 22:33:11 +08:00
bugfix #53
This commit is contained in:
@@ -34,6 +34,10 @@ static int bz2_read(const struct bspatch_stream* stream, void* buffer, int lengt
|
|||||||
int bz2err;
|
int bz2err;
|
||||||
bz_stream* zip;
|
bz_stream* zip;
|
||||||
|
|
||||||
|
if (length == 0) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
zip = (bz_stream*)stream->opaque;
|
zip = (bz_stream*)stream->opaque;
|
||||||
zip->next_out = (char*)buffer;
|
zip->next_out = (char*)buffer;
|
||||||
zip->avail_out = length;
|
zip->avail_out = length;
|
||||||
|
|||||||
Reference in New Issue
Block a user