about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ui/statusbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c
index 7238b9a1..9e1c9559 100644
--- a/src/ui/statusbar.c
+++ b/src/ui/statusbar.c
@@ -93,7 +93,7 @@ status_bar_init(void)
     statusbar->prompt = NULL;
     statusbar->fulljid = NULL;
     statusbar->tabs = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)_destroy_tab);
-    StatusBarTab *console = malloc(sizeof(StatusBarTab));
+    StatusBarTab *console = calloc(1, sizeof(StatusBarTab));
     console->window_type = WIN_CONSOLE;
     console->identifier = strdup("console");
     console->display_name = NULL;