mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
Return early if no URL is passed
This commit is contained in:
parent
7b62feac10
commit
18d6bc7730
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue