Commit 8bf4be30 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Input item URI cannot be NULL

parent 6894acd7
...@@ -357,8 +357,10 @@ char *input_item_GetURI( input_item_t *p_i ) ...@@ -357,8 +357,10 @@ char *input_item_GetURI( input_item_t *p_i )
vlc_mutex_unlock( &p_i->lock ); vlc_mutex_unlock( &p_i->lock );
return psz_s; return psz_s;
} }
void input_item_SetURI( input_item_t *p_i, const char *psz_uri ) void input_item_SetURI( input_item_t *p_i, const char *psz_uri )
{ {
assert( psz_uri );
#ifndef NDEBUG #ifndef NDEBUG
if( !strstr( psz_uri, "://" ) if( !strstr( psz_uri, "://" )
|| strchr( psz_uri, ' ' ) || strchr( psz_uri, '"' ) ) || strchr( psz_uri, ' ' ) || strchr( psz_uri, '"' ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment