From bb8bd3d76da9a17b6609b841848a413e30347fdf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 21 Oct 2020 11:03:36 +0200 Subject: [PATCH] pw-cat: don't put empty strings in metadata --- src/tools/pw-cat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/pw-cat.c b/src/tools/pw-cat.c index 00fa3dd4a..a37256b1b 100644 --- a/src/tools/pw-cat.c +++ b/src/tools/pw-cat.c @@ -1123,7 +1123,8 @@ static int fill_properties(struct data *data) if (table[c] == NULL) continue; - if ((s = sf_get_string(data->file, c)) == NULL) + if ((s = sf_get_string(data->file, c)) == NULL || + *s == '\0') continue; pw_properties_set(data->props, table[c], s);