[evolution-patches] patch for #42212



Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/e-util/ChangeLog,v
retrieving revision 1.387
diff -u -p -r1.387 ChangeLog
--- ChangeLog	5 May 2003 00:56:34 -0000	1.387
+++ ChangeLog	7 May 2003 15:50:54 -0000
@@ -1,3 +1,9 @@
+2003-05-07  Rodrigo Moya <rodrigo ximian com>
+
+	Fixes crash in #42212
+
+	* e-url.c (e_uri_new): check for 'uri_string' being NULL.
+
 2003-05-02  Not Zed  <NotZed Ximian com>
 
 	* e-request.c (e_request_string): remove the assert, if we dont
Index: e-url.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-url.c,v
retrieving revision 1.10
diff -u -p -r1.10 e-url.c
--- e-url.c	5 Feb 2003 21:58:38 -0000	1.10
+++ e-url.c	7 May 2003 15:50:54 -0000
@@ -115,6 +115,8 @@ e_uri_new (const char *uri_string)
 	const char *end, *hash, *colon, *semi, *at, *slash, *question;
 	const char *p;
 
+	g_return_val_if_fail (uri_string != NULL, NULL);
+
 	uri = g_new0 (EUri, 1);
 
 	/* find fragment */


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