Updated sources to avoid using the identifier name "new", which is a
[deliverable/binutils-gdb.git] / bfd / hash.c
index 14fc40301508728a4a72498e57b5b895d28bf152..0f9fd7e5e650d3d66b8fe584d96d91587869092d 100644 (file)
@@ -453,16 +453,17 @@ bfd_hash_lookup (struct bfd_hash_table *table,
 
   if (copy)
     {
-      char *new;
+      char *new_string;
 
-      new = objalloc_alloc ((struct objalloc *) table->memory, len + 1);
-      if (!new)
+      new_string = (char *) objalloc_alloc ((struct objalloc *) table->memory,
+                                            len + 1);
+      if (!new_string)
        {
          bfd_set_error (bfd_error_no_memory);
          return NULL;
        }
-      memcpy (new, string, len + 1);
-      string = new;
+      memcpy (new_string, string, len + 1);
+      string = new_string;
     }
 
   return bfd_hash_insert (table, string, hash);
This page took 0.02352 seconds and 4 git commands to generate.