diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-05-08 22:18:45 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-05-08 22:18:45 +0800 |
commit | d6092b270f5f734932d1325c99727f435e45ba49 (patch) | |
tree | a3702450bbac0326199eade8bb923eab7bbeae16 | |
parent | 692862c505567c96c9997ffef131152ba79e111f (diff) | |
download | gsoc2013-evolution-d6092b270f5f734932d1325c99727f435e45ba49.tar.gz gsoc2013-evolution-d6092b270f5f734932d1325c99727f435e45ba49.tar.zst gsoc2013-evolution-d6092b270f5f734932d1325c99727f435e45ba49.zip |
Fixes crash in #42212
2003-05-07 Rodrigo Moya <rodrigo@ximian.com>
Fixes crash in #42212
* e-url.c (e_uri_new): check for 'uri_string' being NULL.
svn path=/trunk/; revision=21130
-rw-r--r-- | e-util/ChangeLog | 6 | ||||
-rw-r--r-- | e-util/e-url.c | 3 |
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 */ |