Skip to content
  • overcaffeinated's avatar
    Automated change to use smartlist_add_strdup · 265d5446
    overcaffeinated authored
    Use the following coccinelle script to change uses of
    smartlist_add(sl, tor_strdup(str)) to
    smartlist_add_strdup(sl, string) (coccinelle script from nickm
    via bug 20048):
    
    @@
    expression a;
    expression b;
    @@
    - smartlist_add
    + smartlist_add_strdup
       (a,
    - tor_strdup(
       b
    - )
      )
    265d5446