diff --git a/src/calibration.c b/src/calibration.c index 689a738..caefa8b 100644 --- a/src/calibration.c +++ b/src/calibration.c @@ -30,7 +30,7 @@ static char parse_digit(char *line, Node *digits_tree) { * - Si aucun chiffre n'a été trouvé, retourner 0 */ static char first_digit(char *line) { - while (*line != '\0' && !isdigit(*line)) { + while (line[0] != '\0' && !isdigit(line[0])) { line++; }