pulse-server: don't send NULL profile name in port info

This commit is contained in:
Wim Taymans 2020-11-23 17:11:43 +01:00
parent 86fd6a0d3e
commit d56e759166

View file

@ -3354,7 +3354,7 @@ static int fill_card_info(struct client *client, struct message *m,
uint32_t idx = pi->profiles[i]; uint32_t idx = pi->profiles[i];
message_put(m, message_put(m,
TAG_STRING, idx < n_profiles ? TAG_STRING, idx < n_profiles ?
profile_info[idx].name : NULL, /* profile name */ profile_info[idx].name : "off", /* profile name */
TAG_INVALID); TAG_INVALID);
} }
if (client->version >= 27) { if (client->version >= 27) {