From b5a9efcd9342681200280ef9f764b744d62b62ce Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 May 1999 12:24:18 +0000 Subject: Update. * elf/dl-load.c (expand_dynamic_string_token): Rewrite to loose st variable. --- elf/dl-load.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'elf') diff --git a/elf/dl-load.c b/elf/dl-load.c index bdae4ba1da..46f0b67567 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. */ -- cgit v1.2.3