diff options
author | Pixel <> | 2001-04-01 12:36:50 +0000 |
---|---|---|
committer | Pixel <> | 2001-04-01 12:36:50 +0000 |
commit | 8212d25ba09a7fdf1938a1992022a0143d29e05b (patch) | |
tree | bedd5f49afe9d2a74cdb7436ac1bce1151fe6d0e /lib/hash.c | |
parent | 4837528241a8f05ce2ca1fcdf35ea60b27728fb3 (diff) |
Exceptions
Diffstat (limited to 'lib/hash.c')
-rw-r--r-- | lib/hash.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,7 +2,6 @@ #include <stdlib.h> #include <string.h> #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])); } |