HomeFreeBSD

Don't forget to initialize `int error' in ttydev_open().

Description

Don't forget to initialize `int error' in ttydev_open().

I've had some reports in the past that opening an already opened TTY
through, for example, /dev/tty can fail with random error codes. Looking
at ttydev_open(), I can see there is a way `error' is returned without
initialising it. Even though I haven't had any confirmation this fixes
the bug, I'll fix it anyway.

Reported by: Andrzej Tobola <ato iem pw edu pl>

Details

Provenance
edAuthored on Sep 26 2008, 6:17 PM
Parents
rG3b301753914e: Advertise bit 26 as sse2.
Branches
Unknown
Tags
Unknown

Event Timeline