aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/darwin/find-syms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/darwin/find-syms.c b/lib/darwin/find-syms.c
index 4c525ea..0205afe 100644
--- a/lib/darwin/find-syms.c
+++ b/lib/darwin/find-syms.c
@@ -246,7 +246,7 @@ ok2: ;
size_t this_nsyms = type ? ncache_syms : syc.nsyms;
/* This could be optimized for efficiency with a large number of
* names... */
- for (uint32_t i = 0; i < syc.nsyms; i++) {
+ for (uint32_t i = 0; i < this_nsyms; i++) {
const substitute_sym *sym = &this_symtab[i];
uint32_t strx = sym->n_un.n_strx;
const char *name = strx == 0 ? "" : this_strtab + strx;