Commit 6d33b9e9 authored by Cong Xu's avatar Cong Xu

Address darshan-dxt-parser segment fault

Signed-off-by: 's avatarCong Xu <congxu@localhost.localdomain>
parent 2f4d0dbc
......@@ -215,9 +215,6 @@ int main(int argc, char **argv)
ret = mod_logutils[i]->log_get_record(fd,
(void **)&(lustre_rec_ref->rec));
HASH_ADD(hlink, lustre_rec_hash, rec->base_rec.id,
sizeof(darshan_record_id), lustre_rec_ref);
} else {
ret = mod_logutils[i]->log_get_record(fd, (void **)&mod_buf);
}
......@@ -233,7 +230,11 @@ int main(int argc, char **argv)
break;
}
if(i == DARSHAN_LUSTRE_MOD) continue;
if(i == DARSHAN_LUSTRE_MOD) {
HASH_ADD(hlink, lustre_rec_hash, rec->base_rec.id,
sizeof(darshan_record_id), lustre_rec_ref);
continue;
}
base_rec = (struct darshan_base_record *)mod_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