Skip to content

Commit

Permalink
workset_s: added struct initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Jul 11, 2018
1 parent d611539 commit a9dd86e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion core/src/include/jcr.h
Expand Up @@ -262,7 +262,7 @@ struct CompressionContext {
POOLMEM *inflate_buffer; /**< Buffer used for inflation (decompression) */
uint32_t deflate_buffer_size; /**< Length of deflation buffer */
uint32_t inflate_buffer_size; /**< Length of inflation buffer */
struct {
struct workset_s {
#ifdef HAVE_LIBZ
void *pZLIB; /**< ZLIB compression session data */
#endif
Expand All @@ -272,7 +272,24 @@ struct CompressionContext {
#ifdef HAVE_FASTLZ
void *pZFAST; /**< FASTLZ compression session data */
#endif
workset_s() {
#ifdef HAVE_LIBZ
pZLIB = nullptr; /**< ZLIB compression session data */
#endif
#ifdef HAVE_LZO
pLZO = nullptr; /**< LZO compression session data */
#endif
#ifdef HAVE_FASTLZ
pZFAST = nullptr; /**< FASTLZ compression session data */
#endif
}
} workset;
CompressionContext() {
deflate_buffer = nullptr;
inflate_buffer = nullptr;
deflate_buffer_size = 0;
inflate_buffer_size = 0;
}
};

struct job_callback_item {
Expand Down

0 comments on commit a9dd86e

Please sign in to comment.