From 307a2f30b5a426ef97d7f566d3970d48e9a9613d Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Thu, 23 Dec 2010 15:53:27 +0100 Subject: 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 a405789ae..591c964f4 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 a155feceb..06605dbbe 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 e0b05531b..88335b654 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)); -- cgit v1.2.3