]> git.sur5r.net Git - openldap/commitdiff
Cleanup prev commit
authorHoward Chu <hyc@symas.com>
Sat, 24 Aug 2013 18:54:05 +0000 (11:54 -0700)
committerHoward Chu <hyc@symas.com>
Sat, 24 Aug 2013 18:54:05 +0000 (11:54 -0700)
libraries/liblmdb/mdb.c

index 842008578c349c484df90b2618588d0d6517d1ed..59a0d51f168ca8c1b08094c72777ebad9d7c37aa 100644 (file)
@@ -1481,9 +1481,8 @@ mdb_page_spill(MDB_cursor *m0, MDB_val *key, MDB_val *data)
                unsigned int num = sl[0];
                j=1;
                for (i=1; i<=num; i++) {
-                       if (sl[i] == sl[j])
-                               continue;
-                       sl[++j] = sl[i];
+                       if (sl[j] != sl[i])
+                               sl[++j] = sl[i];
                }
                sl[0] = j;
        }