summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/info/search.c
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-07-04 03:01:24 +0000
committerNorbert Preining <norbert@preining.info>2021-07-04 03:01:24 +0000
commit7994f86ec5e18f9d0d9f90161a2f26dd26d26af7 (patch)
tree88edb7d1a1aed3183a1350202c898716b4ac59ce /macros/texinfo/texinfo/info/search.c
parent03fa062b03ce2bb5385f8f30888f94d441fa5cb4 (diff)
CTAN sync 202107040301
Diffstat (limited to 'macros/texinfo/texinfo/info/search.c')
-rw-r--r--macros/texinfo/texinfo/info/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/texinfo/texinfo/info/search.c b/macros/texinfo/texinfo/info/search.c
index 9f1d5e26f7..990e3e9a43 100644
--- a/macros/texinfo/texinfo/info/search.c
+++ b/macros/texinfo/texinfo/info/search.c
@@ -715,7 +715,7 @@ find_node_in_binding (char *nodename, SEARCH_BINDING *binding)
s.end = binding->end;
s.flags = 0;
- while ((position = find_node_separator (&s)) != -1)
+ while (s.start < s.end && (position = find_node_separator (&s)) != -1)
{
char *nodename_start;
char *read_nodename;