]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Clarify when ldisc->term may be NULL.
authorSimon Tatham <anakin@pobox.com>
Sat, 22 Nov 2014 10:37:14 +0000 (10:37 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 22 Nov 2014 15:25:38 +0000 (15:25 +0000)
commit068b67d2f6e9b186b3107ebcb1e88a141b7b5ebc
treea5d761f5ea4431c349376baafe70dd4d4b9cc444
parent2ef23bb8128503feefa36ca90a85c74e4dd62a9b
Clarify when ldisc->term may be NULL.

Namely, any ldisc that you send actual data through should have a
terminal attached, because the ldisc editing/echoing system is
designed entirely for use with a terminal. The only time you can have
an ldisc with no terminal is when it's only ever used by the backend
to report changes to the front end in edit/echo status, e.g. by Unix
Plink.

Coverity spotted an oddity in ldisc_send which after a while I decided
would never have actually caused a problem, but OTOH I agree that it
was confusing, so now hopefully it's less so.
ldisc.c