Skip to content

Commit

Permalink
pmix: correctly handle NULL OPAL_BYTE_OBJECT object
Browse files Browse the repository at this point in the history
  • Loading branch information
ggouaillardet committed Oct 22, 2014
1 parent b4f569b commit 7508c6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opal/mca/pmix/base/pmix_base_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ int opal_pmix_base_cache_keys_locally(const opal_identifier_t* id, const char* k
if (size == 0xffff) {
kv->data.bo.bytes = NULL;
kv->data.bo.size = 0;
size = 0;
} else {
kv->data.bo.bytes = malloc(size);
memcpy(kv->data.bo.bytes, tmp3, size);
Expand Down

1 comment on commit 7508c6f

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented on 7508c6f Oct 22, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks Gilles!!

Please sign in to comment.