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

git at videolan.org git at videolan.org
Wed May 5 13:05:37 CEST 2010


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

access_http: avoid passing NULL to printf %s

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5acb64db842bf4273e190ef39d6af90759563850
---

 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