1
1

Silence warning of zero-byte malloc

Этот коммит содержится в:
Ralph Castain 2016-04-26 11:55:59 -07:00
родитель 9511e38691
Коммит 02876564d4

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

@ -1011,11 +1011,13 @@ pmix_status_t pmix_server_register_events(pmix_peer_t *peer,
/* store the event registration info so we can call the registered /* store the event registration info so we can call the registered
client when the server notifies the event */ client when the server notifies the event */
reginfo = PMIX_NEW(pmix_regevents_info_t); reginfo = PMIX_NEW(pmix_regevents_info_t);
PMIX_INFO_CREATE (reginfo->info, ninfo); if (0 < ninfo) {
reginfo->ninfo = ninfo; PMIX_INFO_CREATE (reginfo->info, ninfo);
for (n=0; n < ninfo; n++) { reginfo->ninfo = ninfo;
memcpy(reginfo->info[n].key, info[n].key, PMIX_MAX_KEYLEN); for (n=0; n < ninfo; n++) {
pmix_value_xfer(&reginfo->info[n].value, &info[n].value); memcpy(reginfo->info[n].key, info[n].key, PMIX_MAX_KEYLEN);
pmix_value_xfer(&reginfo->info[n].value, &info[n].value);
}
} }
PMIX_RETAIN(peer); PMIX_RETAIN(peer);
reginfo->peer = peer; reginfo->peer = peer;