1
1

Merge pull request #3601 from rhc54/topic/fix

Protect against the condition where the port string is actually NULL
Этот коммит содержится в:
Ralph Castain 2017-05-28 21:36:21 -07:00 коммит произвёл GitHub
родитель 89bbb5f585 ed4078e2dd
Коммит 8e583dcf76

Просмотреть файл

@ -208,7 +208,7 @@ bool ompi_rte_connect_accept_support(const char *port)
/* were we launched by mpirun, or are we calling
* without a defined port? */
if (NULL == orte_process_info.my_hnp_uri ||
0 == strlen(port)) {
NULL == port || 0 == strlen(port)) {
return true;
}