* write.c (chain_frchains_together_1): Assert that this function

never returns a pointer to the auto variable `dummy'.
This commit is contained in:
Ben Elliston
2006-10-26 00:17:49 +00:00
parent ba5f0fda86
commit 033cd5fdcd
2 changed files with 4 additions and 0 deletions

View File

@@ -394,6 +394,7 @@ chain_frchains_together_1 (segT section, struct frchain *frchp)
}
}
assert (prev_frag->fr_type != 0);
assert (prev_frag != &dummy);
prev_frag->fr_next = 0;
return prev_frag;
}