about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-07-10 12:55:49 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-07-10 12:55:49 +0200
commiteb14ae5f03f8dcc013956b9f3367c6c90700c3ff (patch)
tree2ac8359edbee2e9943bc3d77f0a5ffa8da168b71 /src
parent6c8e567328818be9cda03393445554ef76f636c5 (diff)
downloadprofani-tty-eb14ae5f03f8dcc013956b9f3367c6c90700c3ff.tar.gz
Fix jump depending on uninit. value in statusbar
Diffstat (limited to 'src')
-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;