aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorexegete <nikitf-97@mail.ru>2020-12-07 18:30:09 +0300
committerexegete <nikitf-97@mail.ru>2020-12-07 18:30:09 +0300
commitd17db441a667ffc8e4fe498e694e236d9a6a437b (patch)
treea609343f156ebee02131780df28a72f6498605c4
parent440bc93bd6f0f3577404fa428f5c529f2b468c1d (diff)
downloadcryptrobber-master.tar
cryptrobber-master.tar.xz
cryptrobber-master.zip
Small strans fixHEADmaster
-rw-r--r--base/strans.c2
1 files changed, 1 insertions, 1 deletions
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;