Fix ITS#2044 duplicate search results due to broken bdb_idl_union

This commit is contained in:
Howard Chu 2002-08-25 10:18:01 +00:00
parent bdcba5ad3a
commit 1524f86778

View File

@ -1053,7 +1053,7 @@ over: ida = IDL_MIN( BDB_IDL_FIRST(a), BDB_IDL_FIRST(b) );
idb = NOID;
else
idb = b[cursorc];
if (b[cursorb] < idb)
if (cursorb <= b[0] && b[cursorb] < idb)
a[cursora++] = b[cursorb++];
else {
a[cursora++] = idb;