From 539ea44bd7ef10f74163ea7045320b6073d68044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 24 Jan 2018 15:06:00 +0100 Subject: [PATCH] [apps] Fix unitialized read --- apps/shared/sum_graph_controller.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/shared/sum_graph_controller.cpp b/apps/shared/sum_graph_controller.cpp index 75d2185e3..8a4cb6629 100644 --- a/apps/shared/sum_graph_controller.cpp +++ b/apps/shared/sum_graph_controller.cpp @@ -209,6 +209,7 @@ SumGraphController::LegendView::LegendView(SumGraphController * controller, char m_editableZone(controller, m_draftText, m_draftText, TextField::maxBufferSize(), controller, false, KDText::FontSize::Small, 0.0f, 0.5f, KDColorBlack, Palette::GreyMiddle), m_sumSymbol(sumSymbol) { + m_draftText[0] = 0; } SumGraphController::LegendView::~LegendView() {