Silence warning of zero-byte malloc
Этот коммит содержится в:
родитель
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(®info->info[n].value, &info[n].value);
|
memcpy(reginfo->info[n].key, info[n].key, PMIX_MAX_KEYLEN);
|
||||||
|
pmix_value_xfer(®info->info[n].value, &info[n].value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
PMIX_RETAIN(peer);
|
PMIX_RETAIN(peer);
|
||||||
reginfo->peer = peer;
|
reginfo->peer = peer;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user