Skip to content

Commit 579e43f

Browse files
committed
Merge pull request #750 from bosilca/topic/pvar_update
Topic/pvar update
2 parents 9c77c6b + c03b3b1 commit 579e43f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

opal/mca/base/mca_base_pvar.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
/*
33
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
44
* reserved.
5-
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
5+
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
6+
* Copyright (c) 2015 Bull SAS. All rights reserved.
7+
* Copyright (c) 2015 The University of Tennessee and The University
8+
* of Tennessee Research Foundation. All rights
9+
* reserved.
610
* $COPYRIGHT$
711
*
812
* Additional copyrights may follow
@@ -295,6 +299,7 @@ int mca_base_pvar_register (const char *project, const char *framework, const ch
295299
break;
296300
}
297301

302+
pvar->pvar_index = pvar_count;
298303
opal_hash_table_set_value_ptr (&mca_base_pvar_index_hash, pvar->name, strlen (pvar->name),
299304
(void *)(uintptr_t) pvar->pvar_index);
300305

@@ -329,7 +334,6 @@ int mca_base_pvar_register (const char *project, const char *framework, const ch
329334
}
330335

331336
pvar->ctx = ctx;
332-
pvar->pvar_index = pvar_count;
333337

334338
return pvar->pvar_index;
335339
}

0 commit comments

Comments
 (0)