delete a redundant if in dynamic linker ctor execution loop
authorRay <i@maskray.me>
Wed, 13 Mar 2019 10:12:17 +0000 (10:12 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 2 Apr 2019 14:36:49 +0000 (10:36 -0400)
ldso/dynlink.c

index 46c5b5ff09aa2d762e6f97236d935db1bc4da6f2..206427fee67c5574f72fa5c4c4c6371709c32a40 100644 (file)
@@ -1461,7 +1461,6 @@ static void do_init_fini(struct dso **queue)
                        pthread_cond_wait(&ctor_cond, &init_fini_lock);
                if (p->ctor_visitor || p->constructed)
                        continue;
-               if (p->constructed) continue;
                p->ctor_visitor = self;
                
                decode_vec(p->dynv, dyn, DYN_CNT);