[vlc-commits] upnp: Fix potential free of uninitialized pointer
Hugo Beauzée-Luyssen
git at videolan.org
Mon May 23 13:56:37 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 23 13:34:24 2016 +0200| [332a939891ccc8197a8375b45bf0c6fc5e41eb16] | committer: Hugo Beauzée-Luyssen
upnp: Fix potential free of uninitialized pointer
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=332a939891ccc8197a8375b45bf0c6fc5e41eb16
---
modules/services_discovery/upnp.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 82538b1..84cd17d 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -755,8 +755,10 @@ int Upnp_i11e_cb::run( Upnp_EventType eventType, void *p_event, void *p_cookie )
}
MediaServer::MediaServer( access_t *p_access, input_item_node_t *node )
- : access_( p_access )
+ : psz_objectId_( NULL )
+ , access_( p_access )
, node_( node )
+
{
vlc_url_t url;
vlc_UrlParse( &url, p_access->psz_location );
More information about the vlc-commits
mailing list