dbusiface-card: Use the ++ operator like it's meant to be used.

This commit is contained in:
Tanu Kaskinen 2009-08-15 05:58:24 +03:00
parent afb79ee83e
commit 18f9f1b5d1

View file

@ -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;
} }