diff --git a/analyseur.c b/analyseur.c index 1192fd0..50c085e 100644 --- a/analyseur.c +++ b/analyseur.c @@ -238,7 +238,7 @@ int est_mot_vide(const char *mot) int chercher_mot(Entree *table, int nb_entrees, const char *mot) { for (int i = 0; i < nb_entrees; i++) { - if (egales(table[i].mot, mot)) + if (table[i].mot[0] == mot[0] && egales(table[i].mot, mot)) return i; } return -1;