fix misleading placement of statement on same line as for loop in ldso
authorRich Felker <dalias@aerifal.cx>
Mon, 15 Oct 2018 19:31:02 +0000 (15:31 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 15 Oct 2018 19:31:02 +0000 (15:31 -0400)
the placement triggered -Wmisleading-indentation warnings if enabled,
and was gratuitously confusing to anyone reading the code.

ldso/dynlink.c

index 42b078cf33b2f492f4621e702f0d2babe5614a3f..c2447bc952d2efb5b2ef70750170c4efbebe2c3f 100644 (file)
@@ -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);