[tor-bugs] #20048 [Core Tor/Tor]: Introduce `smartlist_add_strdup()` function

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 1 13:22:59 UTC 2016


#20048: Introduce `smartlist_add_strdup()` function
--------------------------+------------------------------
 Reporter:  asn           |          Owner:
     Type:  task          |         Status:  new
 Priority:  Medium        |      Milestone:  Tor: 0.2.???
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  easy          |  Actual Points:
Parent ID:                |         Points:  0.3
 Reviewer:                |        Sponsor:
--------------------------+------------------------------

Comment (by nickm):

 An (untested) coccinelle script to transform the code here might look
 something like this. (If it works.)

 {{{
 @@
 expression a;
 expression b;
 @@
 - smartlist_add
 + smartlist_add_strdup
    (a,
 - tor_strdup(
    b
 - )
   )
 @@
 }}}

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


More information about the tor-bugs mailing list