Fix percentile read (#122)

This commit is contained in:
Andrey Borodin 2020-02-19 11:01:29 +05:00 committed by GitHub
parent b2d75b0b3c
commit 785a434acb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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;