[Xfce4-commits] <xfce4-weather-plugin:master> Fix potential null pointer error in search dialog.

Harald Judt noreply at xfce.org
Fri Jul 6 08:50:02 CEST 2012


Updating branch refs/heads/master
         to 169baabb0b9ffa914000eaaeee76052f6e54d14c (commit)
       from 343889631bfe521de7f36a3edca3581ef6745985 (commit)

commit 169baabb0b9ffa914000eaaeee76052f6e54d14c
Author: Константин Гончарик <botankras at gmail.com>
Date:   Fri Jul 6 08:46:05 2012 +0200

    Fix potential null pointer error in search dialog.

 panel-plugin/weather-search.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/weather-search.c b/panel-plugin/weather-search.c
index 56f0823..68f84a9 100644
--- a/panel-plugin/weather-search.c
+++ b/panel-plugin/weather-search.c
@@ -219,12 +219,12 @@ create_search_dialog (GtkWindow *parent,
 
   dialog = g_slice_new0 (search_dialog);
 
-  dialog->proxy_host = proxy_host;
-  dialog->proxy_port = proxy_port;
-
   if (!dialog)
     return NULL;
 
+  dialog->proxy_host = proxy_host;
+  dialog->proxy_port = proxy_port;
+
   dialog->dialog =
     xfce_titled_dialog_new_with_buttons (_("Search weather location code"), parent,
 						GTK_DIALOG_MODAL |


More information about the Xfce4-commits mailing list