We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f77b4 commit b697c18Copy full SHA for b697c18
section/load.c
@@ -233,8 +233,8 @@ static bool json_parse_data_config_element_per_line(DataConfig *out, const json_
233
const json_t *value = json_object_get(obj, "elements_per_line");
234
if(value == NULL) {
235
ret = true; // use default value
236
- } else if(out->type != DATA_TYPE_HEX) {
237
- ERROR_MSG("Number of elements per line is only valid for hex data section");
+ } else if((out->type != DATA_TYPE_HEX) && (out->type != DATA_TYPE_STRING)) {
+ ERROR_MSG("Number of elements per line is only valid for hex and string data section");
238
} else if (!json_validate_int(value, &out->elements_per_line)) {
239
ERROR_MSG("Invalid number of elements per line.");
240
} else {
0 commit comments