diff options
author | Peter Williams <peterw@ximian.com> | 2001-03-01 14:15:03 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-03-01 14:15:03 +0800 |
commit | 9f072e4e810fd297d5c0dc944227eefee8050b38 (patch) | |
tree | e835f4cbfa06bb7d9eb1c37382ea5c2d4c491f45 /camel/camel-url.c | |
parent | f01589262ca132b980bb067e5aa6fbaee8fd3579 (diff) | |
download | gsoc2013-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.c | 4 |
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) { |