Skip to content

Commit

Permalink
Fix Segfault due to uninitialized Variable
Browse files Browse the repository at this point in the history
 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 <[email protected]>
Bug-Debian: http://bugs.debian.org/668663
  • Loading branch information
cmrd-senya authored Feb 23, 2018
1 parent 8184112 commit 9e13cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e13cdd

Please sign in to comment.