1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +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:
Alex Murkoff
2024-04-14 17:45:53 +07:00
parent 75d0f66c87
commit b4ecf724b1

View File

@ -234,7 +234,7 @@ int gzwrite _Z_OF((gzFile, const void *, unsigned));
int gzwrite(gzFile gz, const void *buf, unsigned len) {
z_stream *strm;
unsigned char out[BUFLEN] = 0;
unsigned char out[BUFLEN] = { 0 };
if (gz == NULL || !gz->write)
return 0;