]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Cosmetic
authorPetr Machata <pmachata@redhat.com>
Tue, 16 Jun 2009 14:21:16 +0000 (16:21 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 16 Jun 2009 14:21:16 +0000 (16:21 +0200)
src/dwarflint.c

index b0b8ca7a0b7b9c5e959ed0b01afb65a2440ea67f..147e10daea468fe0fae90b910ad0fb9fe8a2dec7 100644 (file)
@@ -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 *[])