[PATCH] psxkey01: Fix configuration

Aschref Ben-Thabet aschref.ben-thabet at embedded-brains.de
Tue Aug 18 15:52:56 UTC 2020


From: Aschref Ben Thabet <aschref.ben-thabet at embedded-brains.de>

Key_ID array must have the right size, it shall have a value greater
than zero.
Note: In Standard C and C++, zero-size array is not
allowed..
---
 testsuites/psxtests/psxkey01/system.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/psxtests/psxkey01/system.h b/testsuites/psxtests/psxkey01/system.h
index 02d98b7623..186e1b71f0 100644
--- a/testsuites/psxtests/psxkey01/system.h
+++ b/testsuites/psxtests/psxkey01/system.h
@@ -41,7 +41,7 @@
 #endif
 
 TEST_EXTERN pthread_t        Init_id;
-TEST_EXTERN pthread_key_t    Key_id[CONFIGURE_MAXIMUM_POSIX_KEYS - 1];
+TEST_EXTERN pthread_key_t    Key_id[ CONFIGURE_MAXIMUM_POSIX_KEYS ];
 TEST_EXTERN uint32_t         Data_array[ CONFIGURE_MAXIMUM_TASKS ];
 
 #undef TEST_EXTERN
-- 
2.26.2



More information about the devel mailing list