lib/dpkg.c: don't try to dereference a NULL pointer

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
master
Adam D. Barratt 11 years ago
parent 69b3154d79
commit 1a211f04cf

@ -521,7 +521,7 @@ static collpackagelist **get_matching_low(collpackagelist **addto,
if (dep->archqual != NULL) {
if (strcmp(dep->archqual, "any") == 0) {
if (strcmp(vpkg->value.multiarch, "allowed") != 0)
if (vpkg->value.multiarch == NULL || strcmp(vpkg->value.multiarch, "allowed") != 0)
add = 0;
} else
add = 0;

Loading…
Cancel
Save