diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ot_fullscrape.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ot_fullscrape.c b/src/ot_fullscrape.c index bbceb0b..0cd1910 100644 --- a/src/ot_fullscrape.c +++ b/src/ot_fullscrape.c | |||
| @@ -220,8 +220,10 @@ static void fullscrape_make_gzip(int taskid, ot_tasktype mode) { | |||
| 220 | memset(&strm, 0, sizeof(strm)); | 220 | memset(&strm, 0, sizeof(strm)); |
| 221 | strm.next_out = (uint8_t *)iovector.iov_base; | 221 | strm.next_out = (uint8_t *)iovector.iov_base; |
| 222 | strm.avail_out = OT_SCRAPE_CHUNK_SIZE; | 222 | strm.avail_out = OT_SCRAPE_CHUNK_SIZE; |
| 223 | if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) | 223 | if (deflateInit2(&strm, 7, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY) != Z_OK) { |
| 224 | fprintf(stderr, "not ok.\n"); | 224 | free(iovector.iov_base); |
| 225 | return; | ||
| 226 | } | ||
| 225 | 227 | ||
| 226 | if ((mode & TASK_TASK_MASK) == TASK_FULLSCRAPE) { | 228 | if ((mode & TASK_TASK_MASK) == TASK_FULLSCRAPE) { |
| 227 | strm.next_in = (uint8_t *)"d5:filesd"; | 229 | strm.next_in = (uint8_t *)"d5:filesd"; |
