- /*
- * We need not bother about stdin backlogs here,
- * because in GUI PuTTY we can't do anything about
- * it anyway; there's no means of asking Windows to
- * hold off on KEYDOWN messages. We _have_ to
- * buffer everything we're sent.
- */
- ldisc_send(buf, len);
-
- if (len > 0)
+ if (len != 0) {
+ /*
+ * We need not bother about stdin backlogs
+ * here, because in GUI PuTTY we can't do
+ * anything about it anyway; there's no means
+ * of asking Windows to hold off on KEYDOWN
+ * messages. We _have_ to buffer everything
+ * we're sent.
+ */
+ ldisc_send(buf, len);