summaryrefslogtreecommitdiffstats
path: root/src/s_lalias.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/s_lalias.c')
-rw-r--r--src/s_lalias.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/s_lalias.c b/src/s_lalias.c
index eeac08b..56b3985 100644
--- a/src/s_lalias.c
+++ b/src/s_lalias.c
@@ -72,7 +72,8 @@ void
t_lalias
*s_lalias_new(const char name[], const char val[])
{
- t_lalias *link;
+ t_lalias *link;
+ static size_t id = 1;
if ((link = (t_lalias*)malloc(sizeof(t_lalias))) == NULL)
{
@@ -86,6 +87,8 @@ t_lalias
{
return (NULL);
}
+ link->id = id;
link->next = NULL;
+ id += 1;
return (link);
}