diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2023-04-17 07:16:25 +0200 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2023-04-17 07:19:37 +0200 | 
| commit | 44c28f00d65ace6ea6ef340de03139f98648ebe5 (patch) | |
| tree | 8da8fba54c6229ba4232ccc55ddd86a1ad8ca89a /fiv.c | |
| parent | cce2b6ba51addf1b28088174708a3c09a7f81329 (diff) | |
| download | fiv-44c28f00d65ace6ea6ef340de03139f98648ebe5.tar.gz fiv-44c28f00d65ace6ea6ef340de03139f98648ebe5.tar.xz fiv-44c28f00d65ace6ea6ef340de03139f98648ebe5.zip  | |
Make supported media type listing output unique
Diffstat (limited to 'fiv.c')
| -rw-r--r-- | fiv.c | 6 | 
1 files changed, 4 insertions, 2 deletions
@@ -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) {  | 
