Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
dbefada8
Commit
dbefada8
authored
Sep 21, 2015
by
Shane Snyder
Browse files
handle case of empty record map in log file
parent
38e0e4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-logutils.c
View file @
dbefada8
...
...
@@ -452,6 +452,13 @@ int darshan_log_gethash(darshan_fd fd, struct darshan_record_ref **hash)
int
read_req_sz
;
int
buf_remaining
=
0
;
/* just return if there is no record mapping data */
if
(
fd
->
rec_map
.
len
==
0
)
{
*
hash
=
NULL
;
return
(
0
);
}
/* default to hash buffer twice as big as default compression buf */
hash_buf
=
malloc
(
DARSHAN_DEF_COMP_BUF_SZ
*
2
);
if
(
!
hash_buf
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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