]> git.ipfire.org Git - thirdparty/tor.git/commit
Stop spurious clang shallow analysis null pointer errors
authorteor <teor2345@gmail.com>
Mon, 29 Sep 2014 00:08:37 +0000 (10:08 +1000)
committerNick Mathewson <nickm@torproject.org>
Mon, 29 Sep 2014 00:51:23 +0000 (20:51 -0400)
commitff8fe38a2fac97d34bba4d46edabb4dd1bbe6d90
tree78e3a12160d7455de69adb257aed0bdc281f3f72
parent5190ec0bc4c22d7bab756e21db6e357ba07379c4
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.
changes/issue13284-spurious-clang-shallow-analyze-errors [new file with mode: 0644]
src/or/dirserv.c
src/or/dirvote.c
src/or/routerlist.c