Commit dbefada8 authored by Shane Snyder's avatar Shane Snyder

handle case of empty record map in log file

parent 38e0e4be
......@@ -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)
......
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