aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-02 17:19:07 +0000
committerNick Clifton <nickc@redhat.com>2002-01-02 17:19:07 +0000
commit23b7f870fb76af586dc3a62b64b6e2368b42d64d (patch)
tree9dc1a3f88a2d57d323f66e28adb4dd7a3a6bc98c /gas/config
parent07f7c046a86eb008891f453bacf59cf8b8824ce0 (diff)
downloadgdb-23b7f870fb76af586dc3a62b64b6e2368b42d64d.zip
gdb-23b7f870fb76af586dc3a62b64b6e2368b42d64d.tar.gz
gdb-23b7f870fb76af586dc3a62b64b6e2368b42d64d.tar.bz2
Test for a NULL frag link.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-m68k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 20c9c10..ff209a9 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -4674,7 +4674,7 @@ md_estimate_size_before_relax (fragP, segment)
{
fragS *l;
- for (l = fragP->fr_next; l != sym_frag; l = l->fr_next)
+ for (l = fragP->fr_next; l && l != sym_frag; l = l->fr_next)
if (l->fr_fix != 0)
break;
if (l == sym_frag)