diff options
Diffstat (limited to 'src/plugins/buflist/buflist-bar-item.c')
-rw-r--r-- | src/plugins/buflist/buflist-bar-item.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/buflist/buflist-bar-item.c b/src/plugins/buflist/buflist-bar-item.c index e0e12483a..46c115b39 100644 --- a/src/plugins/buflist/buflist-bar-item.c +++ b/src/plugins/buflist/buflist-bar-item.c @@ -74,6 +74,9 @@ buflist_bar_item_get_index (const char *item_name) int i; const char *ptr_item_name; + if (!item_name) + return -1; + for (i = 0; i < BUFLIST_BAR_NUM_ITEMS; i++) { ptr_item_name = buflist_bar_item_get_name (i); |