+2011-11-05 Roland McGrath <roland@hack.frob.com>
+
+ * ar.c (do_oper_insert): Fix check on elf_rawfile return value.
+
2011-10-04 Marek Polacek <mpolacek@redhat.com>
* readelf.c (register_info): Assume the right size of an array.
found[cnt]->name = bname;
found[cnt]->mem = elf_rawfile (newelf, &found[cnt]->size);
- if (found[cnt] == NULL || elf_cntl (newelf, ELF_C_FDDONE) != 0)
+ if (found[cnt]->mem == NULL
+ || elf_cntl (newelf, ELF_C_FDDONE) != 0)
error (EXIT_FAILURE, 0, gettext ("cannot read %s: %s"),
argv[cnt], elf_errmsg (-1));