summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c5
1 files changed, 3 insertions, 2 deletions
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 <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]));
}