aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-misc.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-06-14 18:10:10 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-06-14 18:10:10 +0000
commit63e391789eaccffc14fdf4bba0d9794700deb57b (patch)
tree3e5c41f210e147728a261d6aa80169236b46b159 /bfd/vms-misc.c
parent88830cd1022233fff7da11ff4ff25111c244de63 (diff)
downloadfsf-binutils-gdb-63e391789eaccffc14fdf4bba0d9794700deb57b.zip
fsf-binutils-gdb-63e391789eaccffc14fdf4bba0d9794700deb57b.tar.gz
fsf-binutils-gdb-63e391789eaccffc14fdf4bba0d9794700deb57b.tar.bz2
2000-06-14 H.J. Lu <hjl@gnu.org>
* vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec) is NULL.
Diffstat (limited to 'bfd/vms-misc.c')
-rw-r--r--bfd/vms-misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/vms-misc.c b/bfd/vms-misc.c
index 311192c..c5893f3 100644
--- a/bfd/vms-misc.c
+++ b/bfd/vms-misc.c
@@ -459,6 +459,9 @@ _bfd_vms_next_record (abfd)
return -1;
}
+ if (!PRIV(vms_rec))
+ return -1;
+
if (PRIV(is_vax))
{
PRIV(rec_type) = *(PRIV(vms_rec));