diff --git a/sources/config_reader.c b/sources/config_reader.c index 500e5185..d6cea02d 100644 --- a/sources/config_reader.c +++ b/sources/config_reader.c @@ -327,9 +327,11 @@ od_config_reader_quantiles(od_config_reader_t *reader, char *value, double **qua return false; } *count += 1; - while (*c != ',') { + while (*c != '\0' && *c != ',') { c++; } + if (*c == '\0') + break; c++; } return true;