Capabilities need to be zero'd before realtime reading fresh values,
because they are mostly bitmasks, which are set when capabilities are
detected, and never otherwise cleared.
Change-Id: Ie01556568ca1601685445391b4e7c80a23c7983e
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
const char *key, *uri_string;
struct l_dbus_message_iter variant;
+ memset(&agent->caps, 0, sizeof(agent->caps));
+
while (l_dbus_message_iter_next_entry(properties, &key, &variant)) {
if (!strcmp(key, "Capabilities")) {
parse_prov_caps(&agent->caps, &variant);