From 48cd1a27c0fa01ecc35cc745827da315c266ec94 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 25 Nov 2014 21:34:14 +0100 Subject: drivemount: Fix "variable might be used uninitialized" The code used to set a broken screen in an error case. Based on gnome-applets commit: 33e10c46f76994a94fbccb8da0acb4ca36e6f20a From: Benjamin Otte --- drivemount/drivemount.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c index 90362970..9a4f10a3 100644 --- a/drivemount/drivemount.c +++ b/drivemount/drivemount.c @@ -131,7 +131,9 @@ display_help (GtkAction *action, GdkScreen *screen; GError *error = NULL; - gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (drive_list)), + screen = gtk_widget_get_screen (GTK_WIDGET (drive_list)); + + gtk_show_uri (screen, "help:mate-drivemount/drivemount", gtk_get_current_event_time (), &error); -- cgit v1.2.1