From a51a0a8c48ca689482e74c3b9e967a335c2322fd Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 18 Jun 2013 22:41:47 +0000 Subject: [PATCH] Fix uninitialized var This commit was SVN r28652. --- orte/mca/rmaps/base/rmaps_base_frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orte/mca/rmaps/base/rmaps_base_frame.c b/orte/mca/rmaps/base/rmaps_base_frame.c index a3948e10ed..7dce0f1cc7 100644 --- a/orte/mca/rmaps/base/rmaps_base_frame.c +++ b/orte/mca/rmaps/base/rmaps_base_frame.c @@ -253,7 +253,7 @@ static int orte_rmaps_base_open(mca_base_open_flag_t flags) * and save the second argument as the device */ #if OPAL_HAVE_HWLOC - if (0 == strncasecmp(ck[0], "dist", len)) { + if (0 == strncasecmp(ck[0], "dist", strlen(ck[0]))) { tmp = ORTE_MAPPING_BYDIST; ck2 = opal_argv_split(ck[1], ','); if (ck2[0] != NULL) {