diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-30 15:53:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:01:55 -0700 |
commit | 4a2d1dab0056f35672b9a7ffc001ae644dc1af26 (patch) | |
tree | 0b5ccaec9b8b1c6dc170e507cdf7d503ca1e44b9 /lib.c | |
parent | Remove bogus overly permissive type-comparisons. (diff) | |
download | sparse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |