File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 15
15
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
16
16
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
17
17
* reserved.
18
+ * Copyright (c) 2016 Research Organization for Information Science
19
+ * and Technology (RIST). All rights reserved.
18
20
* $COPYRIGHT$
19
21
*
20
22
* Additional copyrights may follow
@@ -564,6 +566,8 @@ static int fork_hnp(void)
564
566
exit (1 );
565
567
566
568
} else {
569
+ int count ;
570
+
567
571
free (cmd );
568
572
/* I am the parent - wait to hear something back and
569
573
* report results
@@ -630,12 +634,13 @@ static int fork_hnp(void)
630
634
631
635
/* split the pmix_uri into its parts */
632
636
argv = opal_argv_split (cptr , ',' );
633
- if (4 != opal_argv_count (argv )) {
637
+ count = opal_argv_count (argv );
638
+ if (4 > count ) {
634
639
opal_argv_free (argv );
635
640
return ORTE_ERR_BAD_PARAM ;
636
641
}
637
642
/* push each piece into the environment */
638
- for (i = 0 ; i < 4 ; i ++ ) {
643
+ for (i = 0 ; i < count ; i ++ ) {
639
644
pmixenvars [i ] = strdup (argv [i ]);
640
645
putenv (pmixenvars [i ]);
641
646
}
You can’t perform that action at this time.
0 commit comments