Make supported media type listing output unique

This commit is contained in:
2023-04-17 07:16:25 +02:00
parent cce2b6ba51
commit 44c28f00d6
2 changed files with 12 additions and 5 deletions

6
fiv.c
View File

@@ -2204,8 +2204,10 @@ main(int argc, char *argv[])
return 0;
}
if (show_supported_media_types) {
for (char **types = fiv_io_all_supported_media_types(); *types; )
g_print("%s\n", *types++);
char **types = fiv_io_all_supported_media_types();
for (char **p = types; *p; p++)
g_print("%s\n", *p);
g_strfreev(types);
return 0;
}
if (invalidate_cache) {