From: Szabolcs Nagy Date: Wed, 29 Aug 2018 17:04:25 +0000 (+0000) Subject: fix tls_align_dlopen X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=69a19afe86fd6ffb61358195cda3c5dbaab49724 fix tls_align_dlopen skip further checks after a dlsym failure. --- diff --git a/src/functional/tls_align_dlopen.c b/src/functional/tls_align_dlopen.c index 77a7b93..3f7ae34 100644 --- a/src/functional/tls_align_dlopen.c +++ b/src/functional/tls_align_dlopen.c @@ -18,8 +18,7 @@ int main() t = dlsym(h, "t"); if (!t) t_error("dlsym failed\n"); - - for (i = 0; i < 4; i++) { + else for (i = 0; i < 4; i++) { if (!t[i].name) t_error("name is not set for t[%d]\n", i); if (t[i].addr & (t[i].align-1))