Commit 26c4ff22 authored by Shane Snyder's avatar Shane Snyder

bug fix in bzip2 init in darshan logutils

parent b07e6220
...@@ -1051,7 +1051,7 @@ static int darshan_log_dzinit(struct darshan_fd_int_state *state) ...@@ -1051,7 +1051,7 @@ static int darshan_log_dzinit(struct darshan_fd_int_state *state)
tmp_bzstrm->avail_in = 0; tmp_bzstrm->avail_in = 0;
tmp_bzstrm->next_in = Z_NULL; tmp_bzstrm->next_in = Z_NULL;
if(state->creat_flag) if(!(state->creat_flag))
{ {
/* read only file, init decompress algorithm */ /* read only file, init decompress algorithm */
ret = BZ2_bzDecompressInit(tmp_bzstrm, 1, 0); ret = BZ2_bzDecompressInit(tmp_bzstrm, 1, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment