aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/e-url.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index caa8a3fb05..639cfdba29 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -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
diff --git a/e-util/e-url.c b/e-util/e-url.c
index b96ee9cf9b..8dba46b62b 100644
--- a/e-util/e-url.c
+++ b/e-util/e-url.c
@@ -115,6 +115,9 @@ e_uri_new (const char *uri_string)
const char *end, *hash, *colon, *semi, *at, *slash, *question;
const char *p;
+ if (!uri_string)
+ return NULL;
+
uri = g_new0 (EUri, 1);
/* find fragment */