tui: fix uninitialize variable usage (#8261)

This fixes an issue with compiles failing in release mode due to shape
having the possibility of being used uninitialized (since the default
case was missing).
This commit is contained in:
John Szakmeister 2018-04-12 06:50:01 -04:00 committed by Justin M. Keyes
parent 87f4d2592c
commit d48df146d1

View File

@ -937,6 +937,7 @@ static void tui_set_mode(UI *ui, ModeShape mode)
int shape;
switch (c.shape) {
default:
case SHAPE_BLOCK: shape = 1; break;
case SHAPE_HOR: shape = 3; break;
case SHAPE_VER: shape = 5; break;