aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-load.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-04 12:24:18 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-04 12:24:18 +0000
commitb5a9efcd9342681200280ef9f764b744d62b62ce (patch)
tree71c18e1855fa1e53ba3e002eb6643c318c27a90b /elf/dl-load.c
parent27aa0631c73ee805519f3ac078eaef460f1b4bc3 (diff)
downloadglibc-b5a9efcd9342681200280ef9f764b744d62b62ce.zip
glibc-b5a9efcd9342681200280ef9f764b744d62b62ce.tar.gz
glibc-b5a9efcd9342681200280ef9f764b744d62b62ce.tar.bz2
Update.
* elf/dl-load.c (expand_dynamic_string_token): Rewrite to loose st variable.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r--elf/dl-load.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index bdae4ba..46f0b67 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -158,13 +158,12 @@ expand_dynamic_string_token (struct link_map *l, const char *s)
resulting string is and then we copy it over. Since this is now
frequently executed operation we are looking here not for performance
but rather for code size. */
- const char *st, *sf;
+ const char *sf;
size_t cnt = 0;
size_t origin_len;
size_t total;
char *result, *last_elem, *wp;
- st = s;
sf = strchr (s, '$');
while (sf != NULL)
{
@@ -182,8 +181,7 @@ expand_dynamic_string_token (struct link_map *l, const char *s)
&& (len = 11) != 0))))
++cnt;
- st = sf + len;
- sf = strchr (st, '$');
+ sf = strchr (sf + len, '$');
}
/* If we do not have to replace anything simply copy the string. */