diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-10 12:55:49 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-07-10 12:55:49 +0200 |
commit | eb14ae5f03f8dcc013956b9f3367c6c90700c3ff (patch) | |
tree | 2ac8359edbee2e9943bc3d77f0a5ffa8da168b71 | |
parent | 6c8e567328818be9cda03393445554ef76f636c5 (diff) | |
download | profani-tty-eb14ae5f03f8dcc013956b9f3367c6c90700c3ff.tar.gz |
Fix jump depending on uninit. value in statusbar
-rw-r--r-- | src/ui/statusbar.c | 2 |
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; |