]> git.sesse.net Git - vlc/commitdiff
Do not crash on vlm command: 'new somestring vod enabled', when the user forgot ...
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 4 Dec 2005 12:53:53 +0000 (12:53 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 4 Dec 2005 12:53:53 +0000 (12:53 +0000)
modules/misc/rtsp.c

index 769cd2a162e19252de473f49d327d37bd930000f..86ded270578f86c68a51b05ba11551161884bd16 100644 (file)
@@ -215,7 +215,7 @@ static int Open( vlc_object_t *p_this )
         goto error;
     }
 
-    p_sys->psz_host = strdup( url.psz_host );
+    p_sys->psz_host = strdup( url.psz_host ? url.psz_host : "0.0.0.0" );
     p_sys->psz_path = strdup( url.psz_path ? url.psz_path : "/" );
     p_sys->i_port = url.i_port;