diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-11-24 16:57:46 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-11-24 16:57:46 +0200 |
commit | ded0c513836cee2f237edc2e28ee8aec261fd675 (patch) | |
tree | bf176b3ce13a40f8481c73795543fc73ad1412e3 /lib | |
parent | 649fc271d59eacbeeaacd3c24625ee95c884f0b0 (diff) | |
download | librpm-tizen-ded0c513836cee2f237edc2e28ee8aec261fd675.tar.gz librpm-tizen-ded0c513836cee2f237edc2e28ee8aec261fd675.tar.bz2 librpm-tizen-ded0c513836cee2f237edc2e28ee8aec261fd675.zip |
Dont blow up on headers without requireflags in rpmdsNew()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmds.c b/lib/rpmds.c index aec5f6a77..3f92ab823 100644 --- a/lib/rpmds.c +++ b/lib/rpmds.c @@ -155,7 +155,7 @@ rpmds rpmdsNew(Header h, rpmTag tagN, int flags) headerGet(h, tagF, &flags, hgflags); ds->Flags = flags.data; /* ensure rpmlib() requires always have RPMSENSE_RPMLIB flag set */ - if (tagN == RPMTAG_REQUIRENAME) { + if (tagN == RPMTAG_REQUIRENAME && ds->Flags) { for (int i = 0; i < ds->Count; i++) { if (!(ds->Flags[i] & RPMSENSE_RPMLIB) && rstreqn(ds->N[i], "rpmlib(", sizeof("rpmlib(")-1)) |