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

Don't use NULL char pointer

parent c98c4ee9
......@@ -420,7 +420,11 @@ static int Open( vlc_object_t *p_this )
{
sprintf( access, "udp{raw}" );
}
sprintf( url, "%s:%d", p_sys->psz_destination, p_sys->i_port );
if( p_sys->psz_destination != NULL )
sprintf( url, "%s:%d", p_sys->psz_destination, p_sys->i_port );
else
sprintf( url, ":%d", p_sys->i_port );
if( !( p_sys->p_access = sout_AccessOutNew( p_sout, access, url ) ) )
{
msg_Err( p_stream, "cannot create the access out for %s://%s",
......
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