From 08ceb66a197019d2a9bbf6522f163226afb0a28c Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Sat, 24 Mar 2018 06:32:31 -0700 Subject: [PATCH] osc/pt2pt: fix (effectively false positive) CID 1402113 This will almost certainly never happen, but be defensive and guarantee that we never return an uninitialized variable. Signed-off-by: Jeff Squyres --- ompi/mca/osc/pt2pt/osc_pt2pt_frag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/mca/osc/pt2pt/osc_pt2pt_frag.c b/ompi/mca/osc/pt2pt/osc_pt2pt_frag.c index 4db4259a6f..c14afeb257 100644 --- a/ompi/mca/osc/pt2pt/osc_pt2pt_frag.c +++ b/ompi/mca/osc/pt2pt/osc_pt2pt_frag.c @@ -5,7 +5,7 @@ * reserved. * Copyright (c) 2015 Research Organization for Information Science * and Technology (RIST). All rights reserved. - * Copyright (c) 2017 Cisco Systems, Inc. All rights reserved + * Copyright (c) 2017-2018 Cisco Systems, Inc. All rights reserved * $COPYRIGHT$ * * Additional copyrights may follow @@ -139,7 +139,7 @@ int ompi_osc_pt2pt_frag_flush_pending (ompi_osc_pt2pt_module_t *module, int targ int ompi_osc_pt2pt_frag_flush_pending_all (ompi_osc_pt2pt_module_t *module) { - int ret; + int ret = OPAL_SUCCESS; for (int i = 0 ; i < ompi_comm_size (module->comm) ; ++i) { ret = ompi_osc_pt2pt_frag_flush_pending (module, i);