We were missing a case where a property is first set, and then cleared
by setting a NULL value.
Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
if (pa_proplist_contains(i->proplist, key)) {
old_value = pa_xstrdup(pa_proplist_gets(i->proplist, key));
- if (old_value) {
+ if (value && old_value) {
if (pa_streq(value, old_value))
goto finish;
} else
if (pa_proplist_contains(o->proplist, key)) {
old_value = pa_xstrdup(pa_proplist_gets(o->proplist, key));
- if (old_value) {
+ if (value && old_value) {
if (pa_streq(value, old_value))
goto finish;
} else