aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-10-15 15:31:02 -0400
committerRich Felker <dalias@aerifal.cx>2018-10-15 15:31:02 -0400
commitb36c37f6fa9692b03bbdeda2b57b2e8a26d8f315 (patch)
tree798edb265e5b62edf4b0eb246866ff862a986d3b
parente9016138886527a739804634048aeac16092dc1e (diff)
downloadmusl-b36c37f6fa9692b03bbdeda2b57b2e8a26d8f315.zip
musl-b36c37f6fa9692b03bbdeda2b57b2e8a26d8f315.tar.gz
musl-b36c37f6fa9692b03bbdeda2b57b2e8a26d8f315.tar.bz2
fix misleading placement of statement on same line as for loop in ldso
the placement triggered -Wmisleading-indentation warnings if enabled, and was gratuitously confusing to anyone reading the code.
-rw-r--r--ldso/dynlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c
index 42b078c..c2447bc 100644
--- a/ldso/dynlink.c
+++ b/ldso/dynlink.c
@@ -1410,7 +1410,8 @@ hidden void __dls2(unsigned char *base, size_t *sp)
void *p2 = (void *)sp[-1];
if (!p1) {
size_t *auxv, aux[AUX_CNT];
- for (auxv=sp+1+*sp+1; *auxv; auxv++); auxv++;
+ for (auxv=sp+1+*sp+1; *auxv; auxv++);
+ auxv++;
decode_vec(auxv, aux, AUX_CNT);
if (aux[AT_BASE]) ldso.base = (void *)aux[AT_BASE];
else ldso.base = (void *)(aux[AT_PHDR] & -4096);