From 4d34d30a97fcf16ec4665513a7b254a027380490 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 23 Jan 2013 22:16:48 +0000 Subject: [PATCH] Silence warning This commit was SVN r27896. --- orte/mca/db/pmi/db_pmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orte/mca/db/pmi/db_pmi.c b/orte/mca/db/pmi/db_pmi.c index b067d77ff0..b88378550d 100644 --- a/orte/mca/db/pmi/db_pmi.c +++ b/orte/mca/db/pmi/db_pmi.c @@ -682,6 +682,7 @@ static int fetch(const orte_process_name_t *proc, memcpy(*data, &uival, sizeof(unsigned int)); break; case OPAL_BYTE_OBJECT: + sval = 0; boptr = (opal_byte_object_t*)malloc(sizeof(opal_byte_object_t)); boptr->bytes = (uint8_t*)pmi_decode(tmp_val, &sval); boptr->size = sval; @@ -901,6 +902,9 @@ static uint8_t* pmi_decode (char *data, size_t *retlen) { int out_len; size_t i; + /* default */ + *retlen = 0; + ret = calloc (1, 3 * input_len + 1); if (NULL == ret) { return ret;