1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Fix jump depending on uninit. value in statusbar

This commit is contained in:
Michael Vetter 2019-07-10 12:55:49 +02:00
parent 6c8e567328
commit eb14ae5f03

View File

@ -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;