aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-10-26 21:59:34 -0400
committerNick Mathewson <nickm@torproject.org>2009-10-26 22:40:41 -0400
commit5e4d53d535a3cc9903250b3df0caa829f1c5e4bf (patch)
treedcbab7d722ce4d818f6666365ac3d6aecdf9df24 /src/test
parentcec698d29ed51ed219f907e12538e6945e535e4a (diff)
downloadtor-5e4d53d535a3cc9903250b3df0caa829f1c5e4bf.tar
tor-5e4d53d535a3cc9903250b3df0caa829f1c5e4bf.tar.gz
Remove checks for array existence. (CID 410..415)
In C, the code "char x[10]; if (x) {...}" always takes the true branch of the if statement. Coverity notices this now. In some cases, we were testing arrays to make sure that an operation we wanted to do would suceed. Those cases are now always-true. In some cases, we were testing arrays to see if something was _set_. Those caes are now tests for strlen(s), or tests for !tor_mem_is_zero(d,len).
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions