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
This commit is contained in:
Peter Williams
2001-03-01 06:15:03 +00:00
committed by Peter Williams
parent f01589262c
commit 9f072e4e81
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

@ -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) {