Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 438c668

Browse files
author
rhc54
committed
Merge pull request #42 from ggouaillardet/topic/pmi_null_object
pmi: correctly handle NULL OPAL_BYTE_OBJECT object
2 parents 44cd093 + bbcec94 commit 438c668

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opal/mca/db/pmi/db_pmi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
44
* reserved.
5+
* Copyright (c) 2014 Research Organization for Information Science
6+
* and Technology (RIST). All rights reserved.
57
* $COPYRIGHT$
68
*
79
* Additional copyrights may follow
@@ -361,6 +363,7 @@ static void cache_keys_locally(const opal_identifier_t *uid)
361363
if (size == 0xffff) {
362364
bo.bytes = NULL;
363365
bo.size = 0;
366+
size = 0;
364367
} else {
365368
bo.bytes = (uint8_t*)tmp3;
366369
bo.size = size;

0 commit comments

Comments
 (0)