From bc95466e1e33719e41b6f1b821e3f82624c19e3d Mon Sep 17 00:00:00 2001 From: laurent Date: Tue, 6 Sep 2022 13:50:38 +0200 Subject: [PATCH] fix check error in config module, for array types --- common/config/config_userapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/config/config_userapi.c b/common/config/config_userapi.c index 9725c15845..78a6a1b2c9 100644 --- a/common/config/config_userapi.c +++ b/common/config/config_userapi.c @@ -113,7 +113,7 @@ void config_check_valptr(paramdef_t *cfgoptions, int elt_sz, int nb_elt) { sz=managed_ptr_sz(*cfgoptions->strptr); else sz=managed_ptr_sz(cfgoptions->voidptr); - if ( sz != -1) { + if ( sz == -1) { CONFIG_PRINTF_ERROR("[CONFIG] %s NOT SUPPORTED not NULL pointer with array types", cfgoptions->optname); return ; }