summaryrefslogtreecommitdiff
path: root/lib/formats.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-05-20 12:07:38 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-05-21 12:04:51 +0300
commitfc38b84c010fa8c4f2617b1351ceaccec9f5da60 (patch)
tree8882554113bd70b732707db47481107a8fb21109 /lib/formats.c
parentfae1edeb939e761a7fd070081d378a2a67a485f9 (diff)
downloadrpm-fc38b84c010fa8c4f2617b1351ceaccec9f5da60.tar.gz
rpm-fc38b84c010fa8c4f2617b1351ceaccec9f5da60.tar.bz2
rpm-fc38b84c010fa8c4f2617b1351ceaccec9f5da60.zip
Lose the useless rpmtdToString()
- either use rpmtdFormat() or xstrdup() on rpmtdGetString() as appropriate
Diffstat (limited to 'lib/formats.c')
-rw-r--r--lib/formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/formats.c b/lib/formats.c
index 05dc5c8b5..ade9f8f2b 100644
--- a/lib/formats.c
+++ b/lib/formats.c
@@ -621,7 +621,7 @@ static int instprefixTag(Header h, rpmtd td)
} else if (headerGet(h, RPMTAG_INSTPREFIXES, &prefixes, flags)) {
/* only return the first prefix of the array */
td->type = RPM_STRING_TYPE;
- td->data = rpmtdToString(&prefixes);
+ td->data = xstrdup(rpmtdGetString(&prefixes));
td->freeData = 1;
rpmtdFreeData(&prefixes);
return 0;