From 0230e4e0b42b80cf8b5869e2126b8f2adcaa0433 Mon Sep 17 00:00:00 2001 From: Jean-Paul Saman Date: Sun, 4 Dec 2005 12:53:53 +0000 Subject: [PATCH] Do not crash on vlm command: 'new somestring vod enabled', when the user forgot --rtsp-host : on the vlc commandline. --- modules/misc/rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c index 769cd2a162..86ded27057 100644 --- a/modules/misc/rtsp.c +++ b/modules/misc/rtsp.c @@ -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; -- 2.39.2