Fix valgrind warning in volume and channelMap memcmp

Authored by davidedmundson on Sep 16 2016, 9:34 AM.

Description

Fix valgrind warning in volume and channelMap memcmp

Summary:
Due to a lack of pa_channel_map::&operator==() the code does a memcmp on
the cached m_channelMap to the new version in the update to see if it needs
updating.

As our struct starts of uninitialised, vagrlind prints a correct warning
about comparing uninitialised data. However, given our garbage data is
unlikely to match the update, it's not a bug that has a lot of impact.

Test Plan: valgrind plasmashell is quieter

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D2796

Details

Committed
davidedmundsonSep 22 2016, 2:18 PM
Differential Revision
D2796: Fix valgrind warning in volume and channelMap memcmp
Parents
R994:7599716bf587: Add description for volume applet
Branches
Unknown
Tags
Unknown