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
Cristian Simarro
darshan
Commits
c407379a
Commit
c407379a
authored
Jun 14, 2016
by
Shane Snyder
Browse files
bug fix in initializing static modules
parent
30c06099
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-core.c
View file @
c407379a
...
...
@@ -271,14 +271,6 @@ void darshan_core_initialize(int argc, char **argv)
/* collect information about command line and mounted file systems */
darshan_get_exe_and_mounts
(
init_core
,
argc
,
argv
);
/* bootstrap any modules with static initialization routines */
i
=
0
;
while
(
mod_static_init_fns
[
i
])
{
(
*
mod_static_init_fns
[
i
])();
i
++
;
}
darshan_core
=
init_core
;
}
}
...
...
@@ -295,10 +287,21 @@ void darshan_core_initialize(int argc, char **argv)
}
}
/* if darshan was successfully initialized, set the global pointer */
/* if darshan was successfully initialized, set the global pointer and
* bootstrap any modules with static initialization routines
*/
if
(
init_core
)
{
darshan_core
=
init_core
;
i
=
0
;
while
(
mod_static_init_fns
[
i
])
{
(
*
mod_static_init_fns
[
i
])();
i
++
;
}
}
return
;
}
...
...
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