]> git.ipfire.org Git - thirdparty/tor.git/commit
Avoid calling SMARTLIST_FOREACH on a NULL smartlist in tests
authorteor <teor2345@gmail.com>
Sun, 8 Feb 2015 12:41:37 +0000 (23:41 +1100)
committerteor <teor2345@gmail.com>
Sun, 8 Feb 2015 12:41:37 +0000 (23:41 +1100)
commitd0759da14eeaefb186d8d514f971b0b1a0618a0f
tree415718118c90f54af5d60d8ff26bac73390d41c8
parentb101f4e98ce811aee729c31f62ec5dd1cfe44e85
Avoid calling SMARTLIST_FOREACH on a NULL smartlist in tests

Check if each smartlist is NULL before calling SMARTLIST_FOREACH on it.

Bug discovered by the clang static analyzer.
Apple clang 600.0.56 (LLVM 3.5svn) on x86_64-apple-darwin14.1.0.
src/test/test_address.c