From 1f1229564aaf26a6d04ceeac5a5806c1cf2657ef Mon Sep 17 00:00:00 2001 From: ArthurSonzogni Date: Tue, 11 Feb 2020 22:34:01 +0100 Subject: [PATCH] Fix (maybe uninitialized) on weak compilers. --- src/ftxui/component/screen_interactive.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index c9f915a..f48d813 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -144,8 +144,8 @@ void ScreenInteractive::Loop(Component* component) { void ScreenInteractive::Draw(Component* component) { auto document = component->Render(); - int dimx; - int dimy; + int dimx = 0; + int dimy = 0; switch (dimension_) { case Dimension::Fixed: dimx = dimx_;