Skip to content

Commit dae2af5

Browse files
authored
Merge pull request #10861 from bwbarrett/bugfix/segfault-when-project-disabled
mpirun: Fix crash when project disabled
2 parents afd23c9 + 09f5b16 commit dae2af5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ompi/tools/mpirun/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ static void append_prefixes(char ***out, const char *in)
7777

7878
char **tokenized;
7979
tokenized = opal_argv_split(in, ' ');
80+
if (NULL == tokenized) {
81+
return;
82+
}
8083

8184
int count = opal_argv_count(*out);
8285
for (int i = 0; tokenized[i] != NULL; ++i) {

0 commit comments

Comments
 (0)