Skip to content

Commit e3a0f7b

Browse files
ggouaillardetnshpak
authored and
nshpak
committed
opal_var_dump_color_keys: explicitly initialize NULL terminator
Refs. #11826 Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 3ff0186 commit e3a0f7b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opal/runtime/opal_params_core.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Copyright (c) 2010-2014 Los Alamos National Security, LLC.
1818
* All rights reserved.
1919
* Copyright (c) 2014 Hochschule Esslingen. All rights reserved.
20-
* Copyright (c) 2015 Research Organization for Information Science
20+
* Copyright (c) 2015-2023 Research Organization for Information Science
2121
* and Technology (RIST). All rights reserved.
2222
* Copyright (c) 2015-2023 Mellanox Technologies, Inc.
2323
* All rights reserved.
@@ -92,7 +92,8 @@ static char *opal_var_dump_color_string = NULL;
9292
static char *opal_var_dump_color_keys[OPAL_VAR_DUMP_COLOR_KEY_COUNT + 1] = {
9393
[OPAL_VAR_DUMP_COLOR_VAR_NAME] = "name",
9494
[OPAL_VAR_DUMP_COLOR_VAR_VALUE] = "value",
95-
[OPAL_VAR_DUMP_COLOR_VALID_VALUES] = "valid_values"
95+
[OPAL_VAR_DUMP_COLOR_VALID_VALUES] = "valid_values",
96+
[OPAL_VAR_DUMP_COLOR_KEY_COUNT] = NULL
9697
};
9798

9899
/**

0 commit comments

Comments
 (0)