libgweather r725 - in trunk: . libgweather



Author: danw
Date: Mon Mar 23 14:26:59 2009
New Revision: 725
URL: http://svn.gnome.org/viewvc/libgweather?rev=725&view=rev

Log:
	* libgweather/weather-wx.c (wx_start_open): don't crash if the
	user provided an invalid URL for the radar check. #575113


Modified:
   trunk/ChangeLog
   trunk/libgweather/weather-wx.c

Modified: trunk/libgweather/weather-wx.c
==============================================================================
--- trunk/libgweather/weather-wx.c	(original)
+++ trunk/libgweather/weather-wx.c	Mon Mar 23 14:26:59 2009
@@ -92,6 +92,12 @@
     }
  
     msg = soup_message_new ("GET", url);
+    if (!msg) {
+	g_warning ("Invalid radar URL: %s\n", url);
+	g_free (url);
+	return;
+    }
+
     g_signal_connect (msg, "got-chunk", G_CALLBACK (wx_got_chunk), info);
     soup_message_body_set_accumulate (msg->response_body, FALSE);
     soup_session_queue_message (info->session, msg, wx_finish, info);



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