summaryrefslogtreecommitdiff
path: root/lib/cmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmap.c')
-rw-r--r--lib/cmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cmap.c b/lib/cmap.c
index 0a791328c..5d6dbcfdc 100644
--- a/lib/cmap.c
+++ b/lib/cmap.c
@@ -854,7 +854,7 @@ cmap_next_position(const struct cmap *cmap,
const struct cmap_node *node = cmap_node_next(&b->nodes[entry]);
unsigned int i;
- for (i = 0; node; i++) {
+ for (i = 0; node; i++, node = cmap_node_next(node)) {
if (i == offset) {
if (cmap_node_next(node)) {
offset++;