diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-19 18:56:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-19 18:56:28 +0000 |
commit | b0a18d1bfa90f41bb03d5843baeab3b3f1207a2c (patch) | |
tree | 54ed8679ef1cc2ff9e776356c1f14441b1094170 /src/or/test.c | |
parent | 6ca4eebb57ef0b893240f8256a6364be5036804d (diff) | |
download | tor-b0a18d1bfa90f41bb03d5843baeab3b3f1207a2c.tar.gz tor-b0a18d1bfa90f41bb03d5843baeab3b3f1207a2c.zip |
r15967@catbus: nickm | 2007-10-19 14:14:47 -0400
Change meaning of "freefn" argument to smartlist_uniq so that we can remove duplicates from a list without freeing them.
svn:r12053
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index 6f242e4958..3d2c6079df 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1469,7 +1469,7 @@ test_util_smartlist(void) "50,noon,radar,a,man,a,plan,a,canal,panama,radar,noon,50", ",", 0, 0); smartlist_sort(sl, _compare_strs); - smartlist_uniq(sl, _compare_strs, NULL); + smartlist_uniq(sl, _compare_strs, _tor_free); cp = smartlist_join_strings(sl, ",", 0, NULL); test_streq(cp, "50,a,canal,man,noon,panama,plan,radar"); tor_free(cp); |