From 99813b2c61459c81bd1680bb53ef8f7fad1bd612 Mon Sep 17 00:00:00 2001 From: ewt Date: Sun, 8 Feb 1998 17:30:58 +0000 Subject: [PATCH] fixed INSTPREFIX virtual tags CVS patchset: 2002 CVS date: 1998/02/08 17:30:58 --- lib/formats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.7.4