diff options
author | infirit <[email protected]> | 2014-11-25 21:34:14 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-26 18:13:43 +0100 |
commit | 48cd1a27c0fa01ecc35cc745827da315c266ec94 (patch) | |
tree | eeaf56cd5333f61b2639a8b3d4044f5f2dc8ccfb /drivemount/drivemount.c | |
parent | 5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f (diff) | |
download | mate-applets-48cd1a27c0fa01ecc35cc745827da315c266ec94.tar.bz2 mate-applets-48cd1a27c0fa01ecc35cc745827da315c266ec94.tar.xz |
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 <[email protected]>
Diffstat (limited to 'drivemount/drivemount.c')
-rw-r--r-- | drivemount/drivemount.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |