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
75
Issues
75
List
Boards
Labels
Milestones
Merge Requests
10
Merge Requests
10
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
200d21f0
Commit
200d21f0
authored
Sep 26, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix uninitialized variable bug in darshan-diff
parent
1419f48e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
darshan-util/darshan-diff.c
darshan-util/darshan-diff.c
+4
-5
No files found.
darshan-util/darshan-diff.c
View file @
200d21f0
...
...
@@ -362,7 +362,6 @@ static int darshan_build_global_record_hash(
{
struct
darshan_mod_record_ref
*
mod_rec
;
struct
darshan_file_record_ref
*
file_rec
;
darshan_record_id
tmp_rec_id
;
struct
darshan_base_record
*
base_rec
;
int
i
;
int
ret
;
...
...
@@ -372,10 +371,10 @@ static int darshan_build_global_record_hash(
*/
for
(
i
=
0
;
i
<
DARSHAN_MAX_MODS
;
i
++
)
{
if
(
!
mod_logutils
[
i
])
break
;
while
(
1
)
{
if
(
!
mod_logutils
[
i
])
break
;
mod_rec
=
malloc
(
sizeof
(
struct
darshan_mod_record_ref
));
assert
(
mod_rec
);
memset
(
mod_rec
,
0
,
sizeof
(
struct
darshan_mod_record_ref
));
...
...
@@ -400,7 +399,7 @@ static int darshan_build_global_record_hash(
base_rec
=
(
struct
darshan_base_record
*
)
mod_rec
->
mod_dat
;
mod_rec
->
rank
=
base_rec
->
rank
;
HASH_FIND
(
hlink
,
*
rec_hash
,
&
tmp_rec_id
,
sizeof
(
darshan_record_id
),
file_rec
);
HASH_FIND
(
hlink
,
*
rec_hash
,
&
(
base_rec
->
id
)
,
sizeof
(
darshan_record_id
),
file_rec
);
if
(
!
file_rec
)
{
/* there is no entry in the global hash table of darshan records
...
...
@@ -410,7 +409,7 @@ static int darshan_build_global_record_hash(
assert
(
file_rec
);
memset
(
file_rec
,
0
,
sizeof
(
struct
darshan_file_record_ref
));
file_rec
->
rec_id
=
tmp_rec_
id
;
file_rec
->
rec_id
=
base_rec
->
id
;
HASH_ADD
(
hlink
,
*
rec_hash
,
rec_id
,
sizeof
(
darshan_record_id
),
file_rec
);
}
...
...
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