@@ -94,7 +94,7 @@ static int rte_init(void)
9494 uint16_t u16 , * u16ptr ;
9595 char * * peers = NULL , * mycpuset , * * cpusets = NULL ;
9696 opal_process_name_t wildcard_rank , pname ;
97- bool bool_val , tdir_mca_override = false;
97+ bool bool_val , * bool_ptr = & bool_val , tdir_mca_override = false;
9898 size_t i ;
9999
100100 /* run the prolog */
@@ -247,7 +247,7 @@ static int rte_init(void)
247247 OPAL_MODEX_RECV_VALUE_OPTIONAL (ret , OPAL_PMIX_TMPDIR , & wildcard_rank , & val , OPAL_STRING );
248248 if (OPAL_SUCCESS == ret && NULL != val ) {
249249 /* TODO: who has precedence - pmix of MCA setting??? */
250- if ( NULL ! = orte_process_info .top_session_dir ){
250+ if ( NULL = = orte_process_info .top_session_dir ){
251251 orte_process_info .top_session_dir = val ;
252252 } else {
253253 /* keep the MCA setting */
@@ -288,9 +288,9 @@ static int rte_init(void)
288288 }
289289
290290 if ( !tdir_mca_override ){
291- OPAL_MODEX_RECV_VALUE_OPTIONAL (ret , OPAL_PMIX_TDIR_RMCLEAN , & wildcard_rank , & bool_val , OPAL_BOOL );
291+ OPAL_MODEX_RECV_VALUE_OPTIONAL (ret , OPAL_PMIX_TDIR_RMCLEAN , & wildcard_rank , & bool_ptr , OPAL_BOOL );
292292 if (OPAL_SUCCESS == ret ) {
293- orte_process_info .rm_session_dirs = val ;
293+ orte_process_info .rm_session_dirs = bool_val ;
294294 }
295295 }
296296
0 commit comments