commit 9ef656bdf236bf0813cf5178181a8c67065fcc43
parent 17791602cfa86e695a3240ff52ef121ac78d00c5
Author: Jacob R. Edwards <n/a>
Date: Mon, 3 Oct 2022 14:18:48 -0700
Handle searches started with NULL items
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aps/find.c b/aps/find.c
@@ -62,7 +62,7 @@ renewsearch(struct search *state, struct item *start)
{
state->cur = start;
state->end = start;
- state->fin = 0;
+ state->fin = start == NULL;
state->new = 1;
if (!state->reg) {
state->u.num.ind = 0;