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 | |
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
-rw-r--r-- | camel/ChangeLog | 4 | ||||
-rw-r--r-- | camel/camel-url.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 91ce80080b..0179cf917a 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,7 @@ +2001-03-01 Peter Williams <peterw@ximian.com> + + * camel-url.c (camel_url_new): Assert url_string != NULL. + 2001-02-28 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Added camel-sasl-anonymous.[c,h] to the build. 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) { |