Skip to content

Commit b32e06d

Browse files
committed
Missing break between switch cases
Addded a break to the 'J' case of a switch statement that handles terminal display clearing for Windows. It was flowing into case 'K' without an explicit fallthrough tag. Affected function: wolfSSH_DoControlSeq.
1 parent 7831edc commit b32e06d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/wolfterm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ static int wolfSSH_DoControlSeq(WOLFSSH* ssh, WOLFSSH_HANDLE handle, byte* buf,
510510
default:
511511
WLOG(WS_LOG_DEBUG, "Unexpected erase value %d", args[0]);
512512
}
513+
break;
513514

514515
case 'K':
515516
if (numArgs == 0) { /* erase start of cursor to end of line */

0 commit comments

Comments
 (0)