daily update
[deliverable/binutils-gdb.git] / bfd / hash.c
index ed0a10d619816111572e765f2fc36d1643b4a041..3cc4f79644e756fb3ebb99f00b4b0a3e12db679c 100644 (file)
@@ -455,7 +455,6 @@ bfd_hash_lookup (struct bfd_hash_table *table,
   if (copy)
     {
       char *new;
-  table->count ++;
 
       new = objalloc_alloc ((struct objalloc *) table->memory, len + 1);
       if (!new)
@@ -470,6 +469,7 @@ bfd_hash_lookup (struct bfd_hash_table *table,
   hashp->hash = hash;
   hashp->next = table->table[index];
   table->table[index] = hashp;
+  table->count++;
 
   if (table->count > table->size * 3 / 4)
     {
This page took 0.023101 seconds and 4 git commands to generate.