Add support for NULL strings

This commit is contained in:
Wim Taymans 2017-10-17 12:16:53 +02:00
parent 323c644084
commit b589b7062d
4 changed files with 16 additions and 7 deletions

View file

@ -64,7 +64,10 @@ static void print_properties(struct spa_dict *props, char mark)
}
spa_dict_for_each(item, props) {
printf("%c\t\t%s = \"%s\"\n", mark, item->key, item->value);
if (item->value)
printf("%c\t\t%s = \"%s\"\n", mark, item->key, item->value);
else
printf("%c\t\t%s = (null)\n", mark, item->key);
}
}