diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-21 02:10:19 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-21 02:10:19 +0100 |
commit | 32e35d4028f30db5fc7cf96478015be293e4d123 (patch) | |
tree | 379f47cacdb745bb807953459934d80bacb5309e /lib | |
parent | bdc1508a068af7d9fb3d401922c0f2d8b012d8dc (diff) | |
download | pacman-32e35d4028f30db5fc7cf96478015be293e4d123.tar.gz pacman-32e35d4028f30db5fc7cf96478015be293e4d123.tar.xz |
Fix comparison to 0 rather than NULL
Another fix found by Coccinelle example semantic patches.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalpm/package.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index d4b3b9c0..18d77d65 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -345,7 +345,7 @@ static void find_requiredby(pmpkg_t *pkg, pmdb_t *db, alpm_list_t **reqs) pmpkg_t *cachepkg = i->data; if(_alpm_dep_edge(cachepkg, pkg)) { 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)); } } |