Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
7f0cf863
Commit
7f0cf863
authored
Aug 25, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bug fixes in modput
parent
c39904ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
darshan-util/darshan-logutils.c
darshan-util/darshan-logutils.c
+10
-7
No files found.
darshan-util/darshan-logutils.c
View file @
7f0cf863
...
...
@@ -851,10 +851,10 @@ int darshan_log_putmod(darshan_fd fd, darshan_module_id mod_id,
return
(
-
1
);
}
comp_buf
=
malloc
(
mod_buf_sz
);
comp_buf
=
malloc
(
DARSHAN_DEF_COMP_BUF_SZ
);
if
(
!
comp_buf
)
return
(
-
1
);
comp_buf_sz
=
mod_buf_sz
;
comp_buf_sz
=
DARSHAN_DEF_COMP_BUF_SZ
;
/* compress the module's data */
ret
=
darshan_compress_buf
(
mod_buf
,
mod_buf_sz
,
...
...
@@ -1185,12 +1185,15 @@ static int darshan_bzip2_comp(char* decomp_buf, int decomp_buf_sz,
}
/* compress data */
ret
=
BZ2_bzCompress
(
&
tmp_stream
,
BZ_FINISH
);
if
(
ret
!=
BZ_STREAM_END
)
do
{
BZ2_bzCompressEnd
(
&
tmp_stream
);
return
(
-
1
);
}
ret
=
BZ2_bzCompress
(
&
tmp_stream
,
BZ_FINISH
);
if
(
ret
<
0
)
{
BZ2_bzCompressEnd
(
&
tmp_stream
);
return
(
-
1
);
}
}
while
(
ret
!=
BZ_STREAM_END
);
BZ2_bzCompressEnd
(
&
tmp_stream
);
assert
(
tmp_stream
.
total_out_hi32
==
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment