code review comments

This commit is contained in:
laurent
2022-08-18 16:43:26 +02:00
parent 8b159d6ddc
commit d6d4d87e0b
9 changed files with 44 additions and 32 deletions
+3 -1
View File
@@ -57,7 +57,9 @@ int read_strlist(paramdef_t *cfgoptions,config_setting_t *setting, char *cfgpath
numelt=config_setting_length(setting);
config_check_valptr(cfgoptions, sizeof(char *), numelt);
st=0;
AssertFatal(MAX_LIST_SIZE > numelt, "");
AssertFatal(MAX_LIST_SIZE > numelt,
"This piece of code use fixed size arry of constant #define MAX_LIST_SIZE %d\n",
MAX_LIST_SIZE );
for (int i=0; i< numelt ; i++) {
str=config_setting_get_string_elem(setting,i);