forked from Imagelibrary/binutils-gdb
2002-09-10 Michael Snyder <msnyder@redhat.com>
* buildsym.c (finish_block): Protect against null pointer.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user