diff options
author | Alex Murkoff <413x1nkp@gmail.com> | 2024-04-14 17:45:53 +0700 |
---|---|---|
committer | Alex Murkoff <413x1nkp@gmail.com> | 2024-04-14 17:45:53 +0700 |
commit | b4ecf724b15f0ab21a996339112680d3f4ba33eb (patch) | |
tree | 3ebbc337bf98d50f4b38d281dfecf0c4bbb92ec3 | |
parent | 75d0f66c879451e20f62f07162a38af2b314262a (diff) | |
download | zstd-b4ecf724b15f0ab21a996339112680d3f4ba33eb.tar.gz |
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
-rw-r--r-- | zlibWrapper/examples/minigzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zlibWrapper/examples/minigzip.c b/zlibWrapper/examples/minigzip.c index a0655421..c4ce5f47 100644 --- a/zlibWrapper/examples/minigzip.c +++ b/zlibWrapper/examples/minigzip.c @@ -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; |