File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -1330,19 +1330,20 @@ static void pmix2x_log(opal_list_t *info,
1330
1330
pmix2x_opcaddy_t * cd ;
1331
1331
pmix_status_t prc ;
1332
1332
1333
- /* setup the operation */
1333
+ /* create the caddy */
1334
1334
cd = OBJ_NEW (pmix2x_opcaddy_t );
1335
- cd -> opcbfunc = cbfunc ;
1336
- cd -> cbdata = cbdata ;
1337
- ninfo = opal_list_get_size (info );
1338
- cd -> ninfo = ninfo ;
1339
1335
1340
1336
/* bozo check */
1341
- if (NULL == info || 0 == ninfo ) {
1337
+ if (NULL == info || 0 == ( ninfo = opal_list_get_size ( info )) ) {
1342
1338
rc = OPAL_ERR_BAD_PARAM ;
1343
1339
goto CLEANUP ;
1344
1340
}
1345
1341
1342
+ /* setup the operation */
1343
+ cd -> opcbfunc = cbfunc ;
1344
+ cd -> cbdata = cbdata ;
1345
+ cd -> ninfo = ninfo ;
1346
+
1346
1347
/* convert the list to an array of info objects */
1347
1348
PMIX_INFO_CREATE (cd -> info , cd -> ninfo );
1348
1349
n = 0 ;
You can’t perform that action at this time.
0 commit comments