From: Pierre Ynard Date: Wed, 5 May 2010 11:02:53 +0000 (+0200) Subject: access_http: avoid passing NULL to printf %s X-Git-Tag: 1.2.0-pre1~6755 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5acb64db842bf4273e190ef39d6af90759563850;p=vlc access_http: avoid passing NULL to printf %s --- diff --git a/modules/access/http.c b/modules/access/http.c index abb157f921..a23a2f80eb 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,