From: ewt Date: Sun, 8 Feb 1998 17:30:58 +0000 (+0000) Subject: fixed INSTPREFIX virtual tags X-Git-Tag: rpm-4.4-release~3756 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99813b2c61459c81bd1680bb53ef8f7fad1bd612;p=platform%2Fupstream%2Frpm.git fixed INSTPREFIX virtual tags CVS patchset: 2002 CVS date: 1998/02/08 17:30:58 --- diff --git a/lib/formats.c b/lib/formats.c index 5c47a44..74ccd18 100644 --- a/lib/formats.c +++ b/lib/formats.c @@ -188,10 +188,11 @@ static int instprefixTag(Header h, int_32 * type, void ** data, int_32 * count, if (headerGetEntry(h, RPMTAG_INSTALLPREFIX, type, data, count)) { *freeData = 0; return 0; - } else if (headerGetEntry(h, RPMTAG_INSTPREFIXES, type, (void **) &array, + } else if (headerGetEntry(h, RPMTAG_INSTPREFIXES, NULL, (void **) &array, count)) { *((char **) data) = strdup(array[0]); *freeData = 1; + *type = RPM_STRING_TYPE; free(array); return 0; }