File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1515 * Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
1616 * Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1717 * reserved.
18+ * Copyright (c) 2016 Research Organization for Information Science
19+ * and Technology (RIST). All rights reserved.
1820 * $COPYRIGHT$
1921 *
2022 * Additional copyrights may follow
@@ -564,6 +566,8 @@ static int fork_hnp(void)
564566 exit (1 );
565567
566568 } else {
569+ int count ;
570+
567571 free (cmd );
568572 /* I am the parent - wait to hear something back and
569573 * report results
@@ -630,12 +634,13 @@ static int fork_hnp(void)
630634
631635 /* split the pmix_uri into its parts */
632636 argv = opal_argv_split (cptr , ',' );
633- if (4 != opal_argv_count (argv )) {
637+ count = opal_argv_count (argv );
638+ if (4 > count ) {
634639 opal_argv_free (argv );
635640 return ORTE_ERR_BAD_PARAM ;
636641 }
637642 /* push each piece into the environment */
638- for (i = 0 ; i < 4 ; i ++ ) {
643+ for (i = 0 ; i < count ; i ++ ) {
639644 pmixenvars [i ] = strdup (argv [i ]);
640645 putenv (pmixenvars [i ]);
641646 }
You can’t perform that action at this time.
0 commit comments