From 9e13cdd333c0f68662ac6622dd768c5b8c5f27db Mon Sep 17 00:00:00 2001 From: Senya Date: Fri, 23 Feb 2018 23:14:37 +0200 Subject: [PATCH] Fix Segfault due to uninitialized Variable A pointer intended to hold a possible error message was not initialized prior to being passed to the corresponding gtk function. Initialize the pointer with NULL. Author: Willi Mann Bug-Debian: http://bugs.debian.org/668663 --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 793d72d..3b2b7cf 100644 --- a/main.c +++ b/main.c @@ -2027,7 +2027,7 @@ static GtkWidget *create_main_window_menu_bar() // GtkUIManager *uimanager; GtkActionGroup *actgroup; GtkAction *item; - GError *err; + GError *err = NULL; actgroup = gtk_action_group_new("ActionMain"); // set translation domain and function