diff options
Diffstat (limited to 'src/common/hotlist.c')
-rw-r--r-- | src/common/hotlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/hotlist.c b/src/common/hotlist.c index e8be5659c..b784fda11 100644 --- a/src/common/hotlist.c +++ b/src/common/hotlist.c @@ -80,6 +80,9 @@ hotlist_add (int priority, t_gui_buffer *buffer) { t_weechat_hotlist *new_hotlist, *pos_hotlist; + if (!buffer) + return; + if ((pos_hotlist = hotlist_search (buffer))) { /* return if priority is greater or equal than the one to add */ |