[tor-bugs] #14296 [Tor]: Avoid redundant check for NULL defport->unix_addr in config.c

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jan 20 18:53:52 UTC 2015


#14296: Avoid redundant check for NULL defport->unix_addr in config.c
------------------------+--------------------------------
     Reporter:  teor    |      Owner:
         Type:  defect  |     Status:  closed
     Priority:  normal  |  Milestone:  Tor: 0.2.6.x-final
    Component:  Tor     |    Version:  Tor: 0.2.6.2-alpha
   Resolution:  fixed   |   Keywords:  clang
Actual Points:          |  Parent ID:
       Points:          |
------------------------+--------------------------------
Changes (by teor):

 * parent:  #14254 =>


Old description:

> Anything in the middle of a structure will always be non-null.
> clang warns on this because it is redundant.
>
> See my branch '''config-remove-redundant-assert''' in my '''teor2345'''
> github.

New description:

 Anything in the middle of a structure will always be non-null.
 clang 3.6.0 warns on this because it is redundant.

 See my branch '''config-remove-redundant-assert''' in my '''teor2345'''
 github.

--

Comment:

 Note:
 {{{
 clang version 3.6.0 (branches/release_36 226372)
 Target: x86_64-apple-darwin13.4.0
 Thread model: posix
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14296#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list