diff options
Diffstat (limited to 'src/plugins/irc')
-rw-r--r-- | src/plugins/irc/irc-bar-item.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index 61c5b461f..9625b3cfa 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -507,6 +507,9 @@ irc_bar_item_focus_buffer_nicklist (void *data, const char *str_buffer, *nick; str_buffer = weechat_hashtable_get (info, "_buffer"); + if (!str_buffer || !str_buffer[0]) + return NULL; + rc = sscanf (str_buffer, "%lx", &value); if ((rc == EOF) || (rc == 0)) return NULL; |