summaryrefslogtreecommitdiff
path: root/src/plugins/alias
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-25 14:05:03 +0100
committerSébastien Helleu <flashcode@flashtux.org>2017-03-25 14:05:03 +0100
commit70d110026cd9dda4fa7ce570550d7931f234120e (patch)
tree442e39f8b069c7ad5f8413130718bd6f73739525 /src/plugins/alias
parent0d059add9aa4debf47e58af1ef6a6a5e72e3a1ac (diff)
downloadweechat-70d110026cd9dda4fa7ce570550d7931f234120e.zip
alias: check that alias pointer is not NULL in function "alias_free"
Diffstat (limited to 'src/plugins/alias')
-rw-r--r--src/plugins/alias/alias.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index 56179395f..81e339fa1 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -446,6 +446,9 @@ alias_free (struct t_alias *alias)
{
struct t_alias *new_alias_list;
+ if (!alias)
+ return;
+
/* remove alias from list */
if (last_alias == alias)
last_alias = alias->prev_alias;