aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-07 17:53:03 +0000
committerNick Clifton <nickc@redhat.com>2008-01-07 17:53:03 +0000
commit780b23606d1373bf8d28535bbf6b3f87af863bde (patch)
tree196f97bb2be1e89cc9751dedcbeed5a9116c73ba /bfd/vms.c
parentace793883816ba44f9c2cb090e8ea5ff159ad9be (diff)
downloadgdb-780b23606d1373bf8d28535bbf6b3f87af863bde.zip
gdb-780b23606d1373bf8d28535bbf6b3f87af863bde.tar.gz
gdb-780b23606d1373bf8d28535bbf6b3f87af863bde.tar.bz2
PR binutils/5535
* vms.c (vms_close_and_cleanup): Check for the presence of a vms_private_data_struct before examining any of its fields.
Diffstat (limited to 'bfd/vms.c')
-rw-r--r--bfd/vms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/vms.c b/bfd/vms.c
index 457aea8..bb5ab11 100644
--- a/bfd/vms.c
+++ b/bfd/vms.c
@@ -428,7 +428,8 @@ vms_close_and_cleanup (bfd * abfd)
#if VMS_DEBUG
vms_debug (1, "vms_close_and_cleanup (%p)\n", abfd);
#endif
- if (abfd == NULL)
+ if (abfd == NULL
+ || abfd->tdata.any == NULL)
return TRUE;
if (PRIV (vms_buf) != NULL)