From 8ce2e0870c93424ebdacd6713cba98fc86cf1aac Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 16 Jun 2009 16:21:16 +0200 Subject: [PATCH] dwarflint: Cosmetic --- src/dwarflint.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dwarflint.c b/src/dwarflint.c index b0b8ca7a0..147e10dae 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -2511,10 +2511,7 @@ relocation_next (struct relocation_data *reloc, uint64_t offset, while (reloc->index < reloc->size) { - struct where reloc_where = where_from_reloc (reloc, where); - struct relocation *rel = reloc->rel + reloc->index; - where_reset_2 (&reloc_where, rel->offset); /* This relocation entry is ahead of us. */ if (rel->offset > offset) @@ -2529,6 +2526,8 @@ relocation_next (struct relocation_data *reloc, uint64_t offset, { if (st != skip_ok) { + struct where reloc_where = where_from_reloc (reloc, where); + where_reset_2 (&reloc_where, rel->offset); void (*w) (const struct where *, const char *, ...) = wr_error; (*w) (&reloc_where, ((const char *[]) -- 2.47.3