From b917266ca10c09092cb000c34740289c698ca694 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 24 Aug 2013 11:54:05 -0700 Subject: [PATCH] Cleanup prev commit --- libraries/liblmdb/mdb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 8420085..59a0d51 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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; }