mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
dbusiface-card: Use the ++ operator like it's meant to be used.
This commit is contained in:
parent
afb79ee83e
commit
18f9f1b5d1
1 changed files with 2 additions and 4 deletions
|
|
@ -279,10 +279,8 @@ static const char **get_profiles(pa_dbusiface_card *c, unsigned *n) {
|
||||||
|
|
||||||
profiles = pa_xnew(const char *, *n);
|
profiles = pa_xnew(const char *, *n);
|
||||||
|
|
||||||
PA_HASHMAP_FOREACH(profile, c->profiles, state) {
|
PA_HASHMAP_FOREACH(profile, c->profiles, state)
|
||||||
profiles[i] = pa_dbusiface_card_profile_get_path(profile);
|
profiles[i++] = pa_dbusiface_card_profile_get_path(profile);
|
||||||
++i;
|
|
||||||
}
|
|
||||||
|
|
||||||
return profiles;
|
return profiles;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue