[PATCH 27/59] fixup! libctf, next: introduce new class of easier-to-use iterators
Nick Alcock
nick.alcock@oracle.com
Wed Jul 22 09:29:03 GMT 2020
Don't post-modify here: GCC complains.
---
libctf/ctf-archive.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c
index 2e386a02dcf..4fbb246c67b 100644
--- a/libctf/ctf-archive.c
+++ b/libctf/ctf-archive.c
@@ -836,7 +836,8 @@ ctf_archive_next (const ctf_archive_t *wrapper, ctf_next_t **it, const char **na
+ sizeof (struct ctf_archive));
nametbl = (((const char *) arc) + le64toh (arc->ctfa_names));
- name_ = &nametbl[le64toh (modent[i->ctn_n++].name_offset)];
+ name_ = &nametbl[le64toh (modent[i->ctn_n].name_offset)];
+ i->ctn_n++;
} while (skip_parent && strcmp (name_, _CTF_SECTION) == 0);
if (name)
--
2.27.0.247.g3dff7de930
More information about the Binutils
mailing list