]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Small improvement
authorPetr Machata <pmachata@redhat.com>
Sat, 25 Jul 2009 18:04:56 +0000 (20:04 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 4 Aug 2009 14:01:51 +0000 (16:01 +0200)
src/dwarflint.c

index 533f5889dfa9d802feb6d14d56e7f00f87fdec9a..0bbffd5d72b7deec95c1f0034094368fe3a22bd6 100644 (file)
@@ -1544,12 +1544,14 @@ abbrev_table_load (struct read_ctx *ctx)
          free (site1);
        }
 
-      REALLOC (section, abbr);
       struct abbrev fake;
       struct abbrev *cur;
       /* Don't actually save this abbrev if it's duplicate.  */
       if (likely (original == NULL))
-       cur = section->abbr + section->size++;
+       {
+         REALLOC (section, abbr);
+         cur = section->abbr + section->size++;
+       }
       else
        cur = &fake;
       WIPE (*cur);