Stop spurious clang shallow analysis null pointer errors

Avoid 4 null pointer errors under clang shallow analysis (the default when
building under Xcode) by using tor_assert() to prove that the pointers
aren't null. Resolves issue 13284 via minor code refactoring.
This commit is contained in:
teor
2014-09-29 10:08:37 +10:00
committed by Nick Mathewson
parent 5190ec0bc4
commit ff8fe38a2f
4 changed files with 9 additions and 0 deletions
@@ -0,0 +1,3 @@
o Minor bugfixes:
- Avoid 4 null pointer errors under clang shallow analysis by using
tor_assert() to prove that the pointers aren't null. Fixes bug 13284.