diff options
author | exegete <nikitf-97@mail.ru> | 2020-12-07 18:30:09 +0300 |
---|---|---|
committer | exegete <nikitf-97@mail.ru> | 2020-12-07 18:30:09 +0300 |
commit | d17db441a667ffc8e4fe498e694e236d9a6a437b (patch) | |
tree | a609343f156ebee02131780df28a72f6498605c4 | |
parent | 440bc93bd6f0f3577404fa428f5c529f2b468c1d (diff) | |
download | cryptrobber-master.tar cryptrobber-master.tar.xz cryptrobber-master.zip |
-rw-r--r-- | base/strans.c | 2 |
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; |