aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtld/dl-open.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtld/dl-open.c')
-rw-r--r--src/rtld/dl-open.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rtld/dl-open.c b/src/rtld/dl-open.c
index 070a3f5..de699a5 100644
--- a/src/rtld/dl-open.c
+++ b/src/rtld/dl-open.c
@@ -25,12 +25,14 @@ _dl_show_scope (struct link_map *l, int from)
{
_dl_debug_printf ("object=%s [%lu]\n",
DSO_FILENAME (l->l_name), 0UL);
- if (l->l_local_scope != NULL)
- for (int scope_cnt = from; l->l_local_scope[scope_cnt] != NULL; ++scope_cnt)
+ if (l->l_local_scope != NULL) {
+ int scope_cnt;
+ for (scope_cnt = from; l->l_local_scope[scope_cnt] != NULL; ++scope_cnt)
{
_dl_debug_printf (" scope %u:", scope_cnt);
- for (unsigned int cnt = 0; cnt < l->l_local_scope[scope_cnt]->r_nlist; ++cnt)
+ unsigned int cnt;
+ for (cnt = 0; cnt < l->l_local_scope[scope_cnt]->r_nlist; ++cnt)
if (*l->l_local_scope[scope_cnt]->r_list[cnt]->l_name)
_dl_debug_printf_c (" %s",
l->l_local_scope[scope_cnt]->r_list[cnt]->l_name);
@@ -39,6 +41,7 @@ _dl_show_scope (struct link_map *l, int from)
_dl_debug_printf_c ("\n");
}
+ }
else
_dl_debug_printf (" no scope\n");
_dl_debug_printf ("\n");