summaryrefslogtreecommitdiff
path: root/lib/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.c')
-rw-r--r--lib/hash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 207439d..1def58f 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -9,7 +9,7 @@ static char *CHAINEHACHAGE = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX
static int FonctionHachage(char *clef)
{
unsigned int i;
-
+
if (!clef) {
exception(1, _("Internal error into hashing"));
}
@@ -39,6 +39,7 @@ static _ListeChaine InserTete(_ListeChaine l, _Element e)
aux = (_ListeChaine) Emalloc(sizeof(struct _LstChn));
aux->Elem.NomVar = (char *) Emalloc(sizeof(char) * (strlen(e.NomVar) + 1));
+
for (i = 0; i <= strlen(e.NomVar); i++) {
aux->Elem.NomVar[i] = e.NomVar[i];
}