From 87e17a41daeb45688d572f618efe2c0b7cf78609 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 7 Jul 2010 14:04:18 +0000 Subject: [PATCH] Ensure that the com_rules[] array entries are initialized to NULL in case individual entries aren't used, but dynamic rules are enabled (i.e., at least one or more of them are not NULL, meaning that they'll all be assumed to be either NULL or a valid value). This commit was SVN r23361. --- ompi/mca/coll/tuned/coll_tuned_module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ompi/mca/coll/tuned/coll_tuned_module.c b/ompi/mca/coll/tuned/coll_tuned_module.c index 5a50e971e3..94fd7eb67b 100644 --- a/ompi/mca/coll/tuned/coll_tuned_module.c +++ b/ompi/mca/coll/tuned/coll_tuned_module.c @@ -146,6 +146,7 @@ ompi_coll_tuned_forced_getvalues( enum COLLTYPE type, { \ int need_dynamic_decision = 0; \ ompi_coll_tuned_forced_getvalues( (TYPE), &((DATA)->user_forced[(TYPE)]) ); \ + (DATA)->com_rules[(TYPE)] = NULL; \ if( 0 != (DATA)->user_forced[(TYPE)].algorithm ) { \ need_dynamic_decision = 1; \ EXECUTE; \