From: Jérôme Benoit Date: Thu, 6 Apr 2017 10:01:58 +0000 (+0200) Subject: TP6: Partially revert the previous commit. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d79f7ac0a3b3c8dc0456e2a6a7ac2667b3e51a6f;p=Algorithmic_C.git TP6: Partially revert the previous commit. Signed-off-by: Jérôme Benoit --- diff --git a/TP6/arbres/arbre_n_aire/arbre_n_aire.c b/TP6/arbres/arbre_n_aire/arbre_n_aire.c index 163412d..7713d72 100644 --- a/TP6/arbres/arbre_n_aire/arbre_n_aire.c +++ b/TP6/arbres/arbre_n_aire/arbre_n_aire.c @@ -61,7 +61,7 @@ NOEUD *insere(NOEUD * p, char *mot, int i) if (p == NULL) { return insere_fin(mot, i); } else if (p->lettre == mot[i]) { - if (mot[i] == '\0') { + if (mot[i]) { p->fils = insere(p->fils, mot, i + 1); } else { printf("The word is already here\n");