aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-03-01 14:15:03 +0800
committerPeter Williams <peterw@src.gnome.org>2001-03-01 14:15:03 +0800
commit9f072e4e810fd297d5c0dc944227eefee8050b38 (patch)
treee835f4cbfa06bb7d9eb1c37382ea5c2d4c491f45 /camel/camel-url.c
parentf01589262ca132b980bb067e5aa6fbaee8fd3579 (diff)
downloadgsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.tar
gsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.tar.gz
gsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.tar.bz2
gsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.tar.lz
gsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.tar.xz
gsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.tar.zst
gsoc2013-evolution-9f072e4e810fd297d5c0dc944227eefee8050b38.zip
Assert url_string != NULL.
2001-03-01 Peter Williams <peterw@ximian.com> * camel-url.c (camel_url_new): Assert url_string != NULL. svn path=/trunk/; revision=8439
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r--camel/camel-url.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/camel/camel-url.c b/camel/camel-url.c
index 337243bb55..9de03dba1e 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -67,7 +67,9 @@ camel_url_new (const char *url_string, CamelException *ex)
CamelURL *url;
char *semi, *colon, *at, *slash;
char *p;
-
+
+ g_assert (url_string);
+
/* Find protocol: initial substring until ":" */
colon = strchr (url_string, ':');
if (!colon) {