mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-18 22:11:30 +00:00
lib/dpkg.c: don't try to dereference a NULL pointer
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
69b3154d79
commit
1a211f04cf
@ -521,7 +521,7 @@ static collpackagelist **get_matching_low(collpackagelist **addto,
|
|||||||
|
|
||||||
if (dep->archqual != NULL) {
|
if (dep->archqual != NULL) {
|
||||||
if (strcmp(dep->archqual, "any") == 0) {
|
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;
|
add = 0;
|
||||||
} else
|
} else
|
||||||
add = 0;
|
add = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user