diff options
| author | Nathan Moinvaziri <nathan@solidstatenetworks.com> | 2021-07-11 16:59:21 -0700 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-09-22 16:14:05 +0200 |
| commit | 454bbf3e88fc3d5902ab298fc788258838dbe62d (patch) | |
| tree | d1f0ff99303870d8ca2526c88625b19bb7a7631a | |
| parent | ce3cf80314a470f6a9780d2bf977ec28e342e970 (diff) | |
| download | Project-Tick-454bbf3e88fc3d5902ab298fc788258838dbe62d.tar.gz Project-Tick-454bbf3e88fc3d5902ab298fc788258838dbe62d.zip | |
Fill out gzheader before calling deflateSetHeader for better code coverage in example.
| -rw-r--r-- | test/example.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/example.c b/test/example.c index 339ea8cd6f..151e814b7e 100644 --- a/test/example.c +++ b/test/example.c @@ -923,6 +923,12 @@ void test_deflate_set_header(unsigned char *compr, size_t comprLen) { CHECK_ERR(err, "deflateInit2"); head->text = 1; + head->comment = (uint8_t *)"comment"; + head->name = (uint8_t *)"name"; + head->hcrc = 1; + head->extra = (uint8_t *)"extra"; + head->extra_len = (uint32_t)strlen((const char *)head->extra); + err = PREFIX(deflateSetHeader)(&c_stream, head); CHECK_ERR(err, "deflateSetHeader"); if (err == Z_OK) { |
