diff options
author | overcaffeinated <overcaffeinated@airmail.cc> | 2016-10-27 10:26:06 +0100 |
---|---|---|
committer | overcaffeinated <overcaffeinated@airmail.cc> | 2016-10-27 10:26:06 +0100 |
commit | 265d5446faf2744569931bc54633684711bbf3ba (patch) | |
tree | 80c47c0ef835f971f823d2a472ee188c15979638 /src/or/rendservice.c | |
parent | b8b8b6b70e670cb735b43bc6b90150ab1ed4e2d1 (diff) | |
download | tor-265d5446faf2744569931bc54633684711bbf3ba.tar.gz tor-265d5446faf2744569931bc54633684711bbf3ba.zip |
Automated change to use smartlist_add_strdup
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
- )
)
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index d6bd5b1f75..ab7ec3f5f1 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -1222,7 +1222,7 @@ rend_services_add_filenames_to_lists(smartlist_t *open_lst, SMARTLIST_FOREACH_BEGIN(rend_service_list, rend_service_t *, s) { if (s->directory) { rend_service_add_filenames_to_list(open_lst, s); - smartlist_add(stat_lst, tor_strdup(s->directory)); + smartlist_add_strdup(stat_lst, s->directory); } } SMARTLIST_FOREACH_END(s); } |