summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
authorPixel <>2001-04-01 12:36:50 +0000
committerPixel <>2001-04-01 12:36:50 +0000
commit8212d25ba09a7fdf1938a1992022a0143d29e05b (patch)
treebedd5f49afe9d2a74cdb7436ac1bce1151fe6d0e /lib/hash.c
parent4837528241a8f05ce2ca1fcdf35ea60b27728fb3 (diff)
Exceptions
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]));
}