Skip to content

Commit ec54c21

Browse files
committed
Ensure palloc gets setup correctly
Need to shift the call to pmix_init_util so we ensure that the help directories get set. Signed-off-by: Ralph Castain <[email protected]>
1 parent ebb60d9 commit ec54c21

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/tools/palloc/palloc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@ int main(int argc, char **argv)
196196
pmix_tool_basename = "palloc";
197197
gethostname(hostname, sizeof(hostname));
198198

199+
// setup the base infrastructure
200+
if (PMIX_SUCCESS != pmix_init_util(NULL, 0, NULL)) {
201+
return PMIX_ERROR;
202+
}
203+
199204
/* Parse the command line options */
200205
PMIX_CONSTRUCT(&results, pmix_cli_result_t);
201206
rc = pmix_cmd_line_parse(argv, pallocshorts, pallocptions,
@@ -220,11 +225,6 @@ int main(int argc, char **argv)
220225
}
221226
}
222227

223-
// setup the base infrastructure
224-
if (PMIX_SUCCESS != pmix_init_util(NULL, 0, NULL)) {
225-
return PMIX_ERROR;
226-
}
227-
228228
/* if we were given the pid of a starter, then direct that
229229
* we connect to it */
230230
n = 3;

0 commit comments

Comments
 (0)