From 8212d25ba09a7fdf1938a1992022a0143d29e05b Mon Sep 17 00:00:00 2001 From: Pixel <> Date: Sun, 1 Apr 2001 12:36:50 +0000 Subject: Exceptions --- lib/hash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/hash.c') diff --git a/lib/hash.c b/lib/hash.c index 9f45885..3736b80 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -2,7 +2,6 @@ #include #include #include "hash.h" -#include "global.h" static char *CHAINEHACHAGE = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"; static void TraitementDesErreurs(int codeerreur) @@ -100,7 +99,7 @@ static void Detruit(_ListeChaine * l) { _ListeChaine l_aux = NULL; while (*l) { - l_aux = l->Suivant; + l_aux = (*l)->Suivant; free((*l)->Elem.NomVar); free(*l); *l = l_aux; @@ -182,6 +181,8 @@ int Initialise(_TableauVariable * t) } void DetruitTab(_TableauVariable * t){ + int i; + for (i = 0; i < strlen(CHAINEHACHAGE); i++) { Detruit(&((*t)[i])); } -- cgit v1.2.3