From c819e5972178c83e7ce130dd970c08b43a319d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 1 Aug 2025 22:18:58 +0200 Subject: [PATCH] avutil/tests/dict: don't print trailing spaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This matches the tests/ref files, which were manually stripped. Signed-off-by: Kacper Michajłow --- libavutil/tests/dict.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavutil/tests/dict.c b/libavutil/tests/dict.c index 21368203ce..64c967723f 100644 --- a/libavutil/tests/dict.c +++ b/libavutil/tests/dict.c @@ -45,8 +45,11 @@ static const AVDictionaryEntry *dict_iterate(const AVDictionary *m, static void print_dict(const AVDictionary *m) { const AVDictionaryEntry *t = NULL; - while ((t = dict_iterate(m, t))) - printf("%s %s ", t->key, t->value); + const char *sep = ""; + while ((t = dict_iterate(m, t))) { + printf("%s%s %s", sep, t->key, t->value); + sep = " "; + } printf("\n"); }