[vlc-commits] upnp: Don't print a potentially NULL interface name

Hugo Beauzée-Luyssen git at videolan.org
Fri Jul 8 13:51:45 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul  8 13:50:59 2016 +0200| [dd2b9934b20302b55eee1b05e03887f05d9c4f4d] | committer: Hugo Beauzée-Luyssen

upnp: Don't print a potentially NULL interface name

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

 modules/services_discovery/upnp.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index ff86868..9f4c2f9 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1275,7 +1275,7 @@ UpnpInstanceWrapper *UpnpInstanceWrapper::get(vlc_object_t *p_obj, services_disc
 
     #ifdef UPNP_ENABLE_IPV6
         char* psz_miface = var_InheritString( p_obj, "miface" );
-        msg_Info( p_obj, "Initializing libupnp on '%s' interface", psz_miface );
+        msg_Info( p_obj, "Initializing libupnp on '%s' interface", psz_miface ? psz_miface : "default" );
         int i_res = UpnpInit2( psz_miface, 0 );
         free( psz_miface );
     #else



More information about the vlc-commits mailing list