Fix a compiler warning - strncmp returns an int, so you have to compare to 0 instead of NULL.
This commit was SVN r14790.
Этот коммит содержится в:
родитель
de676d717b
Коммит
a2964f429e
@ -409,7 +409,7 @@ void orte_totalview_init_after_spawn(orte_jobid_t jobid)
|
|||||||
appctx = map->apps[proc->app_idx];
|
appctx = map->apps[proc->app_idx];
|
||||||
|
|
||||||
MPIR_proctable[i].host_name = strdup(node->nodename);
|
MPIR_proctable[i].host_name = strdup(node->nodename);
|
||||||
if ( NULL == strncmp(appctx->app, OPAL_PATH_SEP, 1 )) {
|
if ( 0 == strncmp(appctx->app, OPAL_PATH_SEP, 1 )) {
|
||||||
MPIR_proctable[i].executable_name =
|
MPIR_proctable[i].executable_name =
|
||||||
opal_os_path( false, appctx->app, NULL );
|
opal_os_path( false, appctx->app, NULL );
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user