aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-23 14:14:20 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-23 14:14:20 +0000
commit5887e3f23d4888e71b9ed2dfdc37b6ecbbe204d9 (patch)
tree7d9a3b2d73ceeec667a8c3c5786bfd48834e136e /rpmtools.xs
parent2de23e133d43c1a0ac50b0ad54bc40c8d1529c98 (diff)
downloadrpmtools-5887e3f23d4888e71b9ed2dfdc37b6ecbbe204d9.tar
rpmtools-5887e3f23d4888e71b9ed2dfdc37b6ecbbe204d9.tar.gz
rpmtools-5887e3f23d4888e71b9ed2dfdc37b6ecbbe204d9.tar.bz2
rpmtools-5887e3f23d4888e71b9ed2dfdc37b6ecbbe204d9.tar.xz
rpmtools-5887e3f23d4888e71b9ed2dfdc37b6ecbbe204d9.zip
*** empty log message ***
Diffstat (limited to 'rpmtools.xs')
-rw-r--r--rpmtools.xs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpmtools.xs b/rpmtools.xs
index a50735d..4aeebd1 100644
--- a/rpmtools.xs
+++ b/rpmtools.xs
@@ -107,7 +107,7 @@ SV *get_table_sense(Header header, int_32 tag_name, int_32 tag_flags, int_32 tag
if (list) {
table_sense = newAV();
- if (!table_sense) return SvREFCNT_inc(&PL_sv_undef);
+ if (!table_sense) return &PL_sv_undef;
for(i = 0; i < count; i++) {
len = strlen(list[i]); if (len >= sizeof(buff)) continue;
@@ -139,14 +139,14 @@ SV *get_table_sense(Header header, int_32 tag_name, int_32 tag_flags, int_32 tag
/* for getting provides about required files */
if (iprovides && buff[0] == '/')
- hv_store(iprovides, buff, p - buff, SvREFCNT_inc(&PL_sv_undef), 0);
+ hv_fetch(iprovides, buff, p - buff, 1);
av_push(table_sense, newSVpv(buff, p - buff));
}
return newRV_noinc((SV*)table_sense);
}
- return SvREFCNT_inc(&PL_sv_undef);
+ return &PL_sv_undef;
}
HV* get_info(Header header, int bflag, HV* provides) {