summaryrefslogtreecommitdiff
path: root/lib/legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/legacy.c')
-rw-r--r--lib/legacy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/legacy.c b/lib/legacy.c
index 8ba7bbd55..4f86e137e 100644
--- a/lib/legacy.c
+++ b/lib/legacy.c
@@ -244,12 +244,12 @@ int headerConvert(Header h, int op)
#define TDWRAP() \
if (type) \
*type = td.type; \
+ if (c) \
+ *c = td.count; \
if (p) \
*p = td.data; \
else \
- rpmtdFreeData(&td); \
- if (c) \
- *c = td.count
+ rpmtdFreeData(&td)
int headerRemoveEntry(Header h, rpm_tag_t tag)
{