1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

Return early if no URL is passed

This commit is contained in:
Mukund Sivaraman 2008-08-27 15:46:50 +00:00
parent 7b62feac10
commit 18d6bc7730

View file

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