mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-13 12:55:08 -05:00
Fix comparison to 0 rather than NULL
Another fix found by Coccinelle example semantic patches. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
bdc1508a06
commit
32e35d4028
@ -345,7 +345,7 @@ static void find_requiredby(pmpkg_t *pkg, pmdb_t *db, alpm_list_t **reqs)
|
|||||||
pmpkg_t *cachepkg = i->data;
|
pmpkg_t *cachepkg = i->data;
|
||||||
if(_alpm_dep_edge(cachepkg, pkg)) {
|
if(_alpm_dep_edge(cachepkg, pkg)) {
|
||||||
const char *cachepkgname = cachepkg->name;
|
const char *cachepkgname = cachepkg->name;
|
||||||
if(alpm_list_find_str(*reqs, cachepkgname) == 0) {
|
if(alpm_list_find_str(*reqs, cachepkgname) == NULL) {
|
||||||
*reqs = alpm_list_add(*reqs, strdup(cachepkgname));
|
*reqs = alpm_list_add(*reqs, strdup(cachepkgname));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user