mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Test "sc->kbd != NULL" rather than "sc != NULL" before
accessing the keyboard in scopen(). MFC after: 2 weeks
This commit is contained in:
parent
40dbfd1a48
commit
3b34b2da35
1 changed files with 1 additions and 1 deletions
|
|
@ -477,7 +477,7 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
|
|||
ttychars(tp);
|
||||
/* Use the current setting of the <-- key as default VERASE. */
|
||||
/* If the Delete key is preferable, an stty is necessary */
|
||||
if (sc != NULL) {
|
||||
if (sc->kbd != NULL) {
|
||||
key.keynum = KEYCODE_BS;
|
||||
kbd_ioctl(sc->kbd, GIO_KEYMAPENT, (caddr_t)&key);
|
||||
tp->t_cc[VERASE] = key.key.map[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue