Permit i18nstring in headerPutString()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 7 Aug 2008 15:44:03 +0000 (18:44 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 7 Aug 2008 15:44:03 +0000 (18:44 +0300)
lib/header.c

index 2f3d7a0..fa38c89 100644 (file)
@@ -1631,7 +1631,7 @@ int headerPutString(Header h, rpmTag tag, const char *val)
     const void *sptr = NULL;
 
     /* string arrays expect char **, arrange that */
-    if (type == RPM_STRING_ARRAY_TYPE) {
+    if (type == RPM_STRING_ARRAY_TYPE || type == RPM_I18NSTRING_TYPE) {
        sptr = &val;
     } else if (type == RPM_STRING_TYPE) {
        sptr = val;