ref: 439f4f0582f31b81cad4bb4c7a388a5f76080544
parent: 4772141bd632a56a349a9ea96f908878860ad78a
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Jan 11 17:22:52 EST 2024
qp: fix qpnext (was not iterating forward)
--- a/qp.c
+++ b/qp.c
@@ -103,6 +103,12 @@
*pv = t->leaf.v;
return 0;
}
+ if(*pk == t->leaf.k || strcmp(*pk, t->leaf.k) == 0){
+ *pk = nil;
+ *plen = 0;
+ *pv = nil;
+ return -1;
+ }
return -1;
}