Skip to content
Snippets Groups Projects
Commit f77474f1 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#2924, fix transition to subsequent subordinates

parent aa39de6d
No related branches found
No related tags found
No related merge requests found
......@@ -441,7 +441,8 @@ glue_tool_entry_first (
}
}
if (!glueBack || glueBack->be_entry_open (glueBack, glueMode) != 0)
if (!glueBack || !glueBack->be_entry_open || !glueBack->be_entry_first ||
glueBack->be_entry_open (glueBack, glueMode) != 0)
return NOID;
return glueBack->be_entry_first (glueBack);
......@@ -462,7 +463,7 @@ glue_tool_entry_next (
rc = glueBack->be_entry_next (glueBack);
/* If we ran out of entries in one database, move on to the next */
if (rc == NOID) {
while (rc == NOID) {
glueBack->be_entry_close (glueBack);
for (i=0; i<gi->nodes; i++) {
if (gi->n[i].be == glueBack)
......@@ -470,7 +471,7 @@ glue_tool_entry_next (
}
if (i == 0) {
glueBack = NULL;
rc = NOID;
break;
} else {
glueBack = gi->n[i-1].be;
rc = glue_tool_entry_first (b0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment