[empathy] Fix build warnings for uninitialized variables



commit 307a2f30b5a426ef97d7f566d3970d48e9a9613d
Author: Xavier Claessens <xclaesse gmail com>
Date:   Thu Dec 23 15:53:27 2010 +0100

    Fix build warnings for uninitialized variables

 libempathy-gtk/empathy-account-widget.c |    2 +-
 src/empathy-accounts-dialog.c           |    2 +-
 src/empathy-main-window.c               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index a405789..591c964 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -1089,7 +1089,7 @@ account_widget_launch_external_clicked (GtkWidget *button,
       /* we know how to handle this external provider */
       GDesktopAppInfo *desktop_info;
       GError *error = NULL;
-      GdkAppLaunchContext *context;
+      GdkAppLaunchContext *context = NULL;
       gchar *cmd;
       GAppInfo *app_info;
 
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index a155fec..06605db 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -2295,7 +2295,7 @@ empathy_accounts_dialog_show_application (GdkScreen *screen,
   GString *cmd;
   gchar *path;
   GAppInfo *app_info;
-  GdkAppLaunchContext *context;
+  GdkAppLaunchContext *context = NULL;
 
   g_return_if_fail (GDK_IS_SCREEN (screen));
   g_return_if_fail (!selected_account || TP_IS_ACCOUNT (selected_account));
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index e0b0553..88335b6 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1483,7 +1483,7 @@ main_window_help_debug_cb (GtkAction         *action,
 	GError *error = NULL;
 	gchar *path;
 	GAppInfo *app_info;
-	GdkAppLaunchContext *context;
+	GdkAppLaunchContext *context = NULL;
 
 	g_return_if_fail (GDK_IS_SCREEN (screen));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]