Return early if no URL is passed
This commit is contained in:
parent
7b62feac10
commit
18d6bc7730
|
@ -998,6 +998,9 @@ tr_httpIsValidURL( const char * url )
|
|||
"<>#%<\"" /* delims */
|
||||
"{}|\\^[]`"; /* unwise */
|
||||
|
||||
if (url == NULL)
|
||||
return FALSE;
|
||||
|
||||
for( c=url; c && *c; ++c )
|
||||
if( !strchr( rfc2396_valid_chars, *c ) )
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue