Skip to content

Protect against uninitialized var #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/mca/plm/base/plm_base_launch_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ void prte_plm_base_daemon_callback(int status, pmix_proc_t *sender, pmix_data_bu
char *ptr;
int idx;
pmix_status_t ret;
prte_proc_t *daemon = NULL, *dptr;
prte_proc_t *daemon = NULL, *dptr, *d1;
prte_job_t *jdata;
pmix_proc_t dname;
pmix_data_buffer_t *relay;
Expand Down Expand Up @@ -1634,13 +1634,19 @@ void prte_plm_base_daemon_callback(int status, pmix_proc_t *sender, pmix_data_bu
if (1 == dname.rank) {
/* process any cached daemons */
PMIX_CONSTRUCT(&cachelist, pmix_list_t);
d1 = (prte_proc_t *) pmix_pointer_array_get_item(jdatorted->procs, 1);
if (NULL == d1) {
PRTE_ERROR_LOG(PRTE_ERR_NOT_FOUND);
prted_failed_launch = true;
goto CLEANUP;
}
while (NULL != (dptr = (prte_proc_t*)pmix_list_remove_first(&prte_plm_globals.daemon_cache))) {
PMIX_OUTPUT_VERBOSE((5, prte_plm_base_framework.framework_output,
"%s plm:base:prted_daemon_cback processing cached daemon %s",
PRTE_NAME_PRINT(PRTE_PROC_MY_NAME),
PRTE_NAME_PRINT(&dptr->name)));
if (0 == strcmp(dptr->node->topology->sig, sig)) {
dptr->node->topology = t;
dptr->node->topology = d1->node->topology;
dptr->node->available = prte_hwloc_base_filter_cpus(topo);
jdatorted->num_reported++;
} else {
Expand Down
Loading