]> git.sesse.net Git - vlc/commitdiff
access_http: avoid passing NULL to printf %s
authorPierre Ynard <linkfanel@yahoo.fr>
Wed, 5 May 2010 11:02:53 +0000 (13:02 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Wed, 5 May 2010 11:02:53 +0000 (13:02 +0200)
modules/access/http.c

index abb157f92159b8a8e47454f2c3218c1f5543ae2e..a23a2f80eb3e524790765e05af03975456d4d4ff 100644 (file)
@@ -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,