[vlc-commits] commit: access_http: avoid passing NULL to printf %s (Pierre Ynard )

git at videolan.org git at videolan.org
Sun May 9 10:21:05 CEST 2010


vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed May  5 13:02:53 2010 +0200| [2629077d3291f1828496ccd8be62621e1b2fd15a] | committer: Pierre Ynard 

access_http: avoid passing NULL to printf %s
(cherry picked from commit 5acb64db842bf4273e190ef39d6af90759563850)

Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=2629077d3291f1828496ccd8be62621e1b2fd15a
---

 modules/access/http.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/access/http.c b/modules/access/http.c
index abb157f..a23a2f8 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -482,7 +482,8 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
     }
 
     msg_Dbg( p_access, "http: server='%s' port=%d file='%s'",
-             p_sys->url.psz_host, p_sys->url.i_port, p_sys->url.psz_path );
+             p_sys->url.psz_host, p_sys->url.i_port,
+             p_sys->url.psz_path != NULL ? p_sys->url.psz_path : "" );
     if( p_sys->b_proxy )
     {
         msg_Dbg( p_access, "      proxy %s:%d", p_sys->proxy.psz_host,



More information about the vlc-commits mailing list