diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-05-20 12:07:38 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-05-21 12:04:51 +0300 |
commit | fc38b84c010fa8c4f2617b1351ceaccec9f5da60 (patch) | |
tree | 8882554113bd70b732707db47481107a8fb21109 /lib/formats.c | |
parent | fae1edeb939e761a7fd070081d378a2a67a485f9 (diff) | |
download | rpm-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.c | 2 |
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; |