index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-12-10 19:43:59 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-12-10 19:45:14 -0600 |
commit | eedf4f4e630f98350090ef2824b0981ffb4b7a4a (patch) | |
tree | 1235b03ba7a1673097ef408c038a59f82112d6c9 | |
parent | bd08581d2e5c67cc084b7ccb8f67df456bbd9ada (diff) |
-rw-r--r-- | lib/libalpm/trans.c | 2 |
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c index 49fc0f67..02612ec1 100644 --- a/lib/libalpm/trans.c +++ b/lib/libalpm/trans.c @@ -107,7 +107,7 @@ static alpm_list_t *check_arch(alpm_list_t *pkgs) for(i = pkgs; i; i = i->next) { pmpkg_t *pkg = i->data; const char *pkgarch = alpm_pkg_get_arch(pkg); - if(strcmp(pkgarch,arch) && strcmp(pkgarch,"any")) { + if(pkgarch && strcmp(pkgarch, arch) && strcmp(pkgarch, "any")) { char *string; const char *pkgname = alpm_pkg_get_name(pkg); const char *pkgver = alpm_pkg_get_version(pkg); |