summaryrefslogtreecommitdiff
path: root/bfd/tekhex.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-26 18:18:07 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-26 18:18:07 +0000
commit3fcaba6806be44f05812f14f3ff6b225a78c9bf3 (patch)
tree42ab48b422664ef9bcd381a0d0833e5f179c392a /bfd/tekhex.c
parentfbe1cad8acf67680d2224990ed612f88354ecda5 (diff)
downloadbinutils-redhat-3fcaba6806be44f05812f14f3ff6b225a78c9bf3.tar.gz
2007-07-26 Michael Snyder <msnyder@access-company.com>
* tekhex.c (first_phase): Check return value for null.
Diffstat (limited to 'bfd/tekhex.c')
-rw-r--r--bfd/tekhex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/tekhex.c b/bfd/tekhex.c
index 57a26d7c22..2df774fc00 100644
--- a/bfd/tekhex.c
+++ b/bfd/tekhex.c
@@ -389,6 +389,8 @@ first_phase (bfd *abfd, int type, char *src)
return FALSE;
memcpy (n, sym, len + 1);
section = bfd_make_section (abfd, n);
+ if (section == NULL)
+ return FALSE;
}
while (*src)
{