aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-05-29 08:10:02 +0000
committerFrancois Pons <fpons@mandriva.com>2002-05-29 08:10:02 +0000
commit52dbeda392ccf39f19a13c548f855dac0114b471 (patch)
treea122b167d29cca233e6f6f99797d3a7dbad680ca
parentd471b8f9a8b205a0dba4debf35e00c71f16c3a33 (diff)
downloadrpmtools-52dbeda392ccf39f19a13c548f855dac0114b471.tar
rpmtools-52dbeda392ccf39f19a13c548f855dac0114b471.tar.gz
rpmtools-52dbeda392ccf39f19a13c548f855dac0114b471.tar.bz2
rpmtools-52dbeda392ccf39f19a13c548f855dac0114b471.tar.xz
rpmtools-52dbeda392ccf39f19a13c548f855dac0114b471.zip
back fix from URPM module.
-rw-r--r--rpmtools.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmtools.xs b/rpmtools.xs
index 3d79013..8363a7a 100644
--- a/rpmtools.xs
+++ b/rpmtools.xs
@@ -120,7 +120,7 @@ void update_provides(int force, HV* provides, char *name, STRLEN len, Header hea
if (provides) {
if ((isv = hv_fetch(provides, name, len, force))) {
- if (!SvROK(*isv) || SvTYPE(SvRV(*isv)) != SVt_PVHV) {
+ if (isv && !SvROK(*isv) || SvTYPE(SvRV(*isv)) != SVt_PVHV) {
SV* choice_set = (SV*)newHV();
SvREFCNT_dec(*isv); /* drop the old as we are changing it */
*isv = choice_set ? newRV_noinc(choice_set) : &PL_sv_undef;