summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2014-12-23 15:42:33 +0000
committermarkj <markj@FreeBSD.org>2014-12-23 15:42:33 +0000
commit194ce6b9a7af4425565b8d98a4d61b6bc57ffad8 (patch)
treef85ca88e385aa82eb748811b79ac3a2cd12b35aa /cddl
parent13e5279a0191fc19efada5b6e99f61d50949d4a1 (diff)
downloadFreeBSD-src-194ce6b9a7af4425565b8d98a4d61b6bc57ffad8.zip
FreeBSD-src-194ce6b9a7af4425565b8d98a4d61b6bc57ffad8.tar.gz
We can stop iterating once we've found the DOF section.
Submitted by: Fedor Indutny <fedor@indutny.com>
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/drti.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
index fc86eb7..d7b3490 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
@@ -171,6 +171,7 @@ dtrace_dof_init(void)
if (s != NULL && strcmp(s, ".SUNW_dof") == 0) {
dofdata = elf_getdata(scn, NULL);
dof = dofdata->d_buf;
+ break;
}
}
}
OpenPOWER on IntegriCloud