From eb14ae5f03f8dcc013956b9f3367c6c90700c3ff Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 10 Jul 2019 12:55:49 +0200 Subject: [PATCH] Fix jump depending on uninit. value in statusbar --- src/ui/statusbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;