summaryrefslogtreecommitdiff
path: root/src/gui/gui-bar-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-bar-item.c')
-rw-r--r--src/gui/gui-bar-item.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index 7974f1910..1390cee2a 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -1440,11 +1440,7 @@ gui_bar_item_hotlist_cb (const void *pointer, void *data,
buffer_without_name_displayed = NULL;
if (CONFIG_BOOLEAN(config_look_hotlist_unique_numbers) && last_gui_buffer)
- {
- buffer_without_name_displayed = malloc (last_gui_buffer->number);
- if (buffer_without_name_displayed)
- memset (buffer_without_name_displayed, 0, last_gui_buffer->number);
- }
+ buffer_without_name_displayed = calloc (last_gui_buffer->number, 1);
numbers_count = 0;
names_count = 0;