diff options
author | Francois Pons <fpons@mandriva.com> | 2002-05-29 08:10:02 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-05-29 08:10:02 +0000 |
commit | 52dbeda392ccf39f19a13c548f855dac0114b471 (patch) | |
tree | a122b167d29cca233e6f6f99797d3a7dbad680ca | |
parent | d471b8f9a8b205a0dba4debf35e00c71f16c3a33 (diff) | |
download | rpmtools-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.xs | 2 |
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; |