aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfritsch <fritsch@kodi.tv>2019-02-10 15:35:45 +0100
committerfritsch <Peter.Fruehberger@gmail.com>2019-02-10 15:37:50 +0100
commitf160cf4e383f743c0634669f32c2460c48a651e8 (patch)
tree7672b7c7e92e951bcbba147d4a4c4bb7da82711f
parentd9ed9408c49d5c435d2b4d37b1bc30cf9fb9e772 (diff)
UPNPPlayer: Do not use memset on non-trivial type
-rw-r--r--xbmc/network/upnp/UPnPPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/network/upnp/UPnPPlayer.cpp b/xbmc/network/upnp/UPnPPlayer.cpp
index d0c306bdf6..82ae8838d9 100644
--- a/xbmc/network/upnp/UPnPPlayer.cpp
+++ b/xbmc/network/upnp/UPnPPlayer.cpp
@@ -54,7 +54,7 @@ public:
, m_callback(callback)
, m_postime(0)
{
- memset(&m_posinfo, 0, sizeof(m_posinfo));
+ m_posinfo = {};
m_device->FindServiceByType("urn:schemas-upnp-org:service:AVTransport:1", m_transport);
}