Path: utzoo!mnetor!uunet!husc6!linus!philabs!micomvax!zap!iros1!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP (der Mouse) Newsgroups: comp.bugs.4bsd Subject: Used-before-set error in /etc/dmesg Message-ID: <939@mcgill-vision.UUCP> Date: 1 Feb 88 09:39:20 GMT Organization: McGill University, Montreal Lines: 29 Index: etc/dmesg.c 4.3BSD 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