]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/window.c
Clarify when ldisc->term may be NULL.
[PuTTY.git] / windows / window.c
index 6ee534348160f59365057de3411829659b50a12c..7c320a0acb5c80e93bca18db0d6745cd333b5857 100644 (file)
@@ -2234,9 +2234,10 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
                 * Flush the line discipline's edit buffer in the
                 * case where local editing has just been disabled.
                 */
-               ldisc_configure(ldisc, conf);
-               if (ldisc)
+               if (ldisc) {
+                    ldisc_configure(ldisc, conf);
                    ldisc_send(ldisc, NULL, 0, 0);
+                }
                if (pal)
                    DeleteObject(pal);
                logpal = NULL;