]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r17580@catbus: nickm | 2008-01-11 20:40:30 -0500
authorNick Mathewson <nickm@torproject.org>
Sat, 12 Jan 2008 05:52:59 +0000 (05:52 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 12 Jan 2008 05:52:59 +0000 (05:52 +0000)
 Fix policies.c build on gcc 4.2 with warnings.

svn:r13112

src/or/policies.c

index 51ace8e260ef9a5ecee0b11c572fdebc73c6337e..f4b52e93dcc4daec24c734dfc1cbdccfda1dd2ce 100644 (file)
@@ -651,7 +651,8 @@ exit_policy_remove_redundancies(smartlist_t *dest)
   for (i = 0; i < smartlist_len(dest)-1; ++i) {
     ap = smartlist_get(dest, i);
     for (j = i+1; j < smartlist_len(dest); ++j) {
-      tor_assert(j > i);
+      // tor_assert(j > i); // j starts out at i+1; j only increases; i only
+      //                    // decreases.
       tmp = smartlist_get(dest, j);
       if (ap->policy_type != tmp->policy_type) {
         if (addr_policy_intersects(ap, tmp))