mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
made initialize out char array with all elements set to 0
fixed where i made it to init with just the first one being set to 0
This commit is contained in:
@@ -234,7 +234,7 @@ int gzwrite _Z_OF((gzFile, const void *, unsigned));
|
|||||||
|
|
||||||
int gzwrite(gzFile gz, const void *buf, unsigned len) {
|
int gzwrite(gzFile gz, const void *buf, unsigned len) {
|
||||||
z_stream *strm;
|
z_stream *strm;
|
||||||
unsigned char out[BUFLEN] = 0;
|
unsigned char out[BUFLEN] = { 0 };
|
||||||
|
|
||||||
if (gz == NULL || !gz->write)
|
if (gz == NULL || !gz->write)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user