diff options
author | Michael Snyder <msnyder@specifix.com> | 2002-09-10 23:45:26 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2002-09-10 23:45:26 +0000 |
commit | bcf788514a993459b4a759d73c51d735e539f735 (patch) | |
tree | 88096bcfd3ea99f83aeaba9511f691cacf716035 /gdb/buildsym.c | |
parent | 004770c2be76b47bd02d0407436b7ff4c0c96933 (diff) | |
download | gdb-bcf788514a993459b4a759d73c51d735e539f735.tar.gz |
2002-09-10 Michael Snyder <msnyder@redhat.com>
* buildsym.c (finish_block): Protect against null pointer.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c index b1962dffeae..9d9b4f74482 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -422,7 +422,9 @@ finish_block (struct symbol *symbol, struct pending **listhead, start of this scope that don't have superblocks yet. */ opblock = NULL; - for (pblock = pending_blocks; pblock != old_blocks; pblock = pblock->next) + for (pblock = pending_blocks; + pblock && pblock != old_blocks; + pblock = pblock->next) { if (BLOCK_SUPERBLOCK (pblock->block) == NULL) { |