Commit a94832b3 authored by Shane Snyder's avatar Shane Snyder

byte swap bug fix for reading the record hash

parent a850ea74
......@@ -619,7 +619,6 @@ int darshan_log_gethash(darshan_fd fd, struct darshan_record_ref **hash)
path_len_ptr = (uint32_t *)buf_ptr;
buf_ptr += sizeof(uint32_t);
path_ptr = (char *)buf_ptr;
buf_ptr += *path_len_ptr;
if(fd->swap_flag)
{
......@@ -653,6 +652,8 @@ int darshan_log_gethash(darshan_fd fd, struct darshan_record_ref **hash)
/* add this record to the hash */
HASH_ADD(hlink, *hash, rec.id, sizeof(darshan_record_id), ref);
}
buf_ptr += *path_len_ptr;
}
free(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