fixed INSTPREFIX virtual tags
authorewt <devnull@localhost>
Sun, 8 Feb 1998 17:30:58 +0000 (17:30 +0000)
committerewt <devnull@localhost>
Sun, 8 Feb 1998 17:30:58 +0000 (17:30 +0000)
CVS patchset: 2002
CVS date: 1998/02/08 17:30:58

lib/formats.c

index 5c47a44..74ccd18 100644 (file)
@@ -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;
     }