aboutsummaryrefslogtreecommitdiff
path: root/lib.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-05-30 15:53:58 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:01:55 -0700
commit4a2d1dab0056f35672b9a7ffc001ae644dc1af26 (patch)
tree0b5ccaec9b8b1c6dc170e507cdf7d503ca1e44b9 /lib.c
parentRemove bogus overly permissive type-comparisons. (diff)
downloadsparse-4a2d1dab0056f35672b9a7ffc001ae644dc1af26.tar.gz
sparse-4a2d1dab0056f35672b9a7ffc001ae644dc1af26.tar.bz2
sparse-4a2d1dab0056f35672b9a7ffc001ae644dc1af26.zip
Make sparse sources themselves be sparse-clean.
This actually showed a bug ("assignment in conditional") in evaluate.c.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index e20289d..f998fa4 100644
--- a/lib.c
+++ b/lib.c
@@ -419,7 +419,7 @@ int replace_ptr_list(struct ptr_list **head, void *old_ptr, void *new_ptr)
void *ptr;
init_iterator(head, &iterator, 0);
- while ((ptr=next_iterator(&iterator))) {
+ while ((ptr=next_iterator(&iterator)) != NULL) {
if (ptr==old_ptr) {
if (new_ptr)
replace_iterator(&iterator, new_ptr);