[gnome-applets/gtk3: 1/23] drivemount: Fix "variable might be used uninitialized"
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/gtk3: 1/23] drivemount: Fix "variable might be used uninitialized"
- Date: Thu, 28 Oct 2010 13:08:32 +0000 (UTC)
commit 598dbe02918f94ee88d9ccd14eb178e28b976fc0
Author: Benjamin Otte <otte redhat com>
Date: Fri Aug 20 12:29:05 2010 +0200
drivemount: Fix "variable might be used uninitialized"
The code used to set a broken screen in an error case.
https://bugzilla.gnome.org/show_bug.cgi?id=627490
drivemount/drivemount.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/drivemount/drivemount.c b/drivemount/drivemount.c
index baba9f8..2d09325 100644
--- a/drivemount/drivemount.c
+++ b/drivemount/drivemount.c
@@ -126,7 +126,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,
"ghelp:drivemount?drivemount",
gtk_get_current_event_time (),
&error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]