From ce8154eb3e63fe6488e8d2f40c2ac6e8934914bf Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Wed, 26 Mar 2008 11:39:25 +0000 Subject: [PATCH] - Coverity issues CID 945: Event uninit_use: Using uninitialized value "rc" Instead of initializing rc in the beginning, rather use return value of opal_hash_table_set_value_uint32. This commit was SVN r17976. --- orte/mca/routed/tree/routed_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orte/mca/routed/tree/routed_tree.c b/orte/mca/routed/tree/routed_tree.c index bd5042d4ab..e480c56144 100644 --- a/orte/mca/routed/tree/routed_tree.c +++ b/orte/mca/routed/tree/routed_tree.c @@ -179,8 +179,8 @@ static int update_route(orte_process_name_t *target, /* vpid wildcard */ if (target->jobid != ORTE_JOBID_WILDCARD && target->vpid == ORTE_VPID_WILDCARD) { - opal_hash_table_set_value_uint32(&vpid_wildcard_list, - target->jobid, route_copy); + rc = opal_hash_table_set_value_uint32(&vpid_wildcard_list, + target->jobid, route_copy); if (ORTE_SUCCESS != rc) { ORTE_ERROR_LOG(rc); }