diff options
author | Francois Pons <fpons@mandriva.com> | 2001-02-19 14:56:36 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-02-19 14:56:36 +0000 |
commit | 9d85e901ed85548eca61eecc23bec48cbb76f734 (patch) | |
tree | 7eb2833b7795c5e0aa0ea10155867bc29d916924 /rpmtools.xs | |
parent | c92b3c436dc83ee75d711d890ad1b82be43faa20 (diff) | |
download | rpmtools-9d85e901ed85548eca61eecc23bec48cbb76f734.tar rpmtools-9d85e901ed85548eca61eecc23bec48cbb76f734.tar.gz rpmtools-9d85e901ed85548eca61eecc23bec48cbb76f734.tar.bz2 rpmtools-9d85e901ed85548eca61eecc23bec48cbb76f734.tar.xz rpmtools-9d85e901ed85548eca61eecc23bec48cbb76f734.zip |
*** empty log message ***
Diffstat (limited to 'rpmtools.xs')
-rw-r--r-- | rpmtools.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmtools.xs b/rpmtools.xs index 5130133..dac839b 100644 --- a/rpmtools.xs +++ b/rpmtools.xs @@ -472,13 +472,13 @@ _parse_(fileno_or_rpmfile, flag, info, ...) while (fd_is_hdlist >= 0 ? (fd_is_hdlist > 0 ? ((header=headerRead(fd, HEADER_MAGIC_YES)) != 0) : ((fd_is_hdlist = -1), rpmReadPackageHeader(fd, &header, &i, NULL, NULL) == 0)) : 0) { - SV* sv_name = newSVpv(get_name(header, RPMTAG_NAME), 0); + char *name = get_name(header, RPMTAG_NAME); HV* header_info = get_info(header, bflag, iprovides); /* once the hash header_info is built, store a reference to it in iinfo. note sv_name is not incremented here, it has the default value of before. */ - hv_store_ent(iinfo, sv_name, newRV_noinc((SV*)header_info), 0); + hv_store(iinfo, name, strlen(name), newRV_noinc((SV*)header_info), 0); /* dispose of some memory */ headerFree(header); |