aboutsummaryrefslogtreecommitdiffstats
path: root/rpmtools.xs
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-03-23 13:36:21 +0000
committerFrancois Pons <fpons@mandriva.com>2001-03-23 13:36:21 +0000
commit0a2dfc6911ac431134790278b8bd8c1c7d42fe22 (patch)
tree307d501e68573bf7a3b5302a4fd597478f8b936d /rpmtools.xs
parent81f94e9378a3a9f6d745ae325cee4adb473d5ed8 (diff)
downloadrpmtools-0a2dfc6911ac431134790278b8bd8c1c7d42fe22.tar
rpmtools-0a2dfc6911ac431134790278b8bd8c1c7d42fe22.tar.gz
rpmtools-0a2dfc6911ac431134790278b8bd8c1c7d42fe22.tar.bz2
rpmtools-0a2dfc6911ac431134790278b8bd8c1c7d42fe22.tar.xz
rpmtools-0a2dfc6911ac431134790278b8bd8c1c7d42fe22.zip
try to be cleaner for subscript but not enough.
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 4aeebd1..a50735d 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 &PL_sv_undef;
+ if (!table_sense) return SvREFCNT_inc(&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_fetch(iprovides, buff, p - buff, 1);
+ hv_store(iprovides, buff, p - buff, SvREFCNT_inc(&PL_sv_undef), 0);
av_push(table_sense, newSVpv(buff, p - buff));
}
return newRV_noinc((SV*)table_sense);
}
- return &PL_sv_undef;
+ return SvREFCNT_inc(&PL_sv_undef);
}
HV* get_info(Header header, int bflag, HV* provides) {