Skip to content

Commit 7acf1f1

Browse files
committed
Fix uninitialized variable
Variable "dirs" is passed to the PMIx function without being initialized when the "#if" clause is false. Signed-off-by: Ralph Castain <rhc@pmix.org>
1 parent 67d7276 commit 7acf1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/util/show_help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void opal_show_help_cbfunc(pmix_status_t status, void *cbdata)
134134
}
135135

136136
static void local_delivery(const char *file, const char *topic, char *msg) {
137-
pmix_info_t *info, *dirs;
137+
pmix_info_t *info, *dirs = NULL;
138138
int ninfo = 0, ndirs = 0;
139139
PMIX_INFO_CREATE(info, 1);
140140
PMIX_INFO_LOAD(&info[ninfo++], PMIX_LOG_STDERR, msg, PMIX_STRING);

0 commit comments

Comments
 (0)