]> git.sesse.net Git - vlc/commitdiff
Handle an error
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Jul 2009 16:59:48 +0000 (19:59 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 20 Jul 2009 16:59:48 +0000 (19:59 +0300)
modules/stream_out/rtp.c

index 6e6b8c0cbe28528c484f996bbbc1399879b6668a..c496ee34be6a96527b94e517f7bdfac9096fc208 100644 (file)
@@ -664,6 +664,8 @@ static void SDPHandleUrl( sout_stream_t *p_stream, const char *psz_url )
         if( psz_url[0] == '/' && psz_url[1] == '/' )
             psz_url += 2;
         p_sys->psz_sdp_file = strdup( psz_url );
+        if( p_sys->psz_sdp_file == NULL )
+            goto out;
         decode_URI( p_sys->psz_sdp_file ); /* FIXME? */
         FileSetup( p_stream );
     }