Ensure to increment i if we didn't find the option. Fixed a problem
Ralph reported. This commit was SVN r2535.
Этот коммит содержится в:
родитель
e8c36d02c9
Коммит
4b30eddd23
@ -764,6 +764,7 @@ static int split_shorts(ompi_cmd_line_t *cmd, bool ignore_unknown)
|
||||
pass it through unmodified to the new argv */
|
||||
|
||||
if (NULL == option) {
|
||||
++i;
|
||||
if (!ignore_unknown) {
|
||||
ompi_output(0, "Unrecognized option: '%s'", token);
|
||||
return OMPI_ERR_BAD_PARAM;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user