mouse@mcgill-vision.UUCP (der Mouse) (02/01/88)
Description:
/etc/dmesg has a used-before-set problem.
Repeat-By:
Inspect the code, or, relink dmesg with a run-time system that
happens to leave nonzero trash on the stack where `ignore' gets
allocated.
This implies a bug in lint, too, for this elicits no `may be
used before set' messages from lint.
Fix:
*** dmesg.c.old Thu Feb 20 14:29:45 1986
--- dmesg.c Mon Feb 1 04:32:35 1988
***************
*** 90,95 ****
--- 90,96 ----
mp = mstart;
pdate();
sawnl = 1;
+ ignore = 0;
do {
if (sawnl && *mp == '<')
ignore = 1;
der Mouse
uucp: mouse@mcgill-vision.uucp
arpa: mouse@larry.mcrcim.mcgill.edu