shithub: libtags

Download patch

ref: 815ac8d6497873fdad42032e433b832c80d5baaf
parent: a5c61d42cf4fde51a09e605c0792852fc131ddec
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Feb 19 12:59:57 EST 2024

readtags example: print Tunknown tags

--- a/examples/readtags.c
+++ b/examples/readtags.c
@@ -43,7 +43,9 @@
 	USED(ctx); USED(k); USED(f);
 	if(t == Timage)
 		print("%-12s %s %d %d\n", t2s[t], v, offset, size);
-	else if(t != Tunknown)
+	else if(t == Tunknown)
+		print("%-12s %s\n", k, v);
+	else
 		print("%-12s %s\n", t2s[t], v);
 }