Honor rpmtd type, not tag type, in rpmtdClass() (ticket #25)
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Jan 2009 11:21:39 +0000 (13:21 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 28 Jan 2009 11:21:39 +0000 (13:21 +0200)
lib/rpmtd.c

index 01690d4..fc7af73 100644 (file)
@@ -74,7 +74,7 @@ rpmTagType rpmtdType(rpmtd td)
 rpmTagClass rpmtdClass(rpmtd td)
 {
     assert(td != NULL);
-    return rpmTagGetClass(td->tag);
+    return rpmTagTypeGetClass(td->type);
 }
 
 int rpmtdGetIndex(rpmtd td)