Skip to content

Commit 98b6d65

Browse files
gpapaurebosilca
authored andcommitted
avoid use of non initialized variable
1 parent 5b9f59b commit 98b6d65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/base/mca_base_pvar.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
44
* reserved.
55
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
6+
* Copyright (c) 2015 Bull SAS. All rights reserved.
67
* $COPYRIGHT$
78
*
89
* Additional copyrights may follow
@@ -296,7 +297,7 @@ int mca_base_pvar_register (const char *project, const char *framework, const ch
296297
}
297298

298299
opal_hash_table_set_value_ptr (&mca_base_pvar_index_hash, pvar->name, strlen (pvar->name),
299-
(void *)(uintptr_t) pvar->pvar_index);
300+
(void *)(uintptr_t) pvar_count);
300301

301302
pvar_count++;
302303
ret = OPAL_SUCCESS;

0 commit comments

Comments
 (0)