[gnome-applets/rendering-cleanup: 2/12] drivemount: Fix "variable might be used uninitialized"
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/rendering-cleanup: 2/12] drivemount: Fix "variable might be used uninitialized"
- Date: Thu, 28 Oct 2010 11:04:57 +0000 (UTC)
commit 57b2f89cbc18484e1ba30a5d5449a238c4e00737
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]