]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/link.h
Update.
[thirdparty/glibc.git] / elf / link.h
index e8203596ffd090043b79c7177f923210ee3a5bcd..ac53a204a63e30692a0c98ff47c1138af189525d 100644 (file)
@@ -69,7 +69,7 @@ extern struct r_debug _r_debug;
 /* This symbol refers to the "dynamic structure" in the `.dynamic' section
    of whatever module refers to `_DYNAMIC'.  So, to find its own
    `struct r_debug', a program could do:
-     for (dyn = _DYNAMIC; dyn->d_tag != DT_NULL)
+     for (dyn = _DYNAMIC; dyn->d_tag != DT_NULL; ++dyn)
        if (dyn->d_tag == DT_DEBUG)
         r_debug = (struct r_debug *) dyn->d_un.d_ptr;
    */