From a2795fe43d1ff8e342bad121aeb565433fb5dfd7 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 26 Mar 2008 19:10:02 +0000 Subject: [PATCH] Very minor modification against r17980: check the whole string against "all", not just the first 3 chars (i.e., if someone sets the value "allfoo", we should still error). This commit was SVN r17981. The following SVN revision numbers were found above: r17980 --> open-mpi/ompi@b3ef774d46be015faf17ae1cc47dc8f8c0523492 --- ompi/runtime/ompi_mpi_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/runtime/ompi_mpi_init.c b/ompi/runtime/ompi_mpi_init.c index 577c8d882a..839ae8ac16 100644 --- a/ompi/runtime/ompi_mpi_init.c +++ b/ompi/runtime/ompi_mpi_init.c @@ -266,7 +266,7 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided) environment variable, just so that it won't be inherited by any spawned processes and potentially cause unintented side-effects with launching ORTE tools... */ - if( 0 == strncmp("all", event_val, strlen("all")) ) { + if (0 == strcmp("all", event_val)) { mca_base_param_set_string(ret, "all"); } }