From d17db441a667ffc8e4fe498e694e236d9a6a437b Mon Sep 17 00:00:00 2001 From: exegete Date: Mon, 7 Dec 2020 18:30:09 +0300 Subject: Small strans fix --- base/strans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'base/strans.c') diff --git a/base/strans.c b/base/strans.c index 9b27799..db1620a 100644 --- a/base/strans.c +++ b/base/strans.c @@ -252,7 +252,7 @@ void add_identifier(struct identifier **id_list, const char *lexem, { struct identifier *head = *id_list; *id_list = malloc(sizeof(struct identifier)); - if(!id_list) + if(!*id_list) exit_error(ERROR_STATUS_ID_LIST_OVERFLOW, NULL); (*id_list)->lexem = lexem; (*id_list)->value = value; -- cgit v1.2.3