From 225a82355504d2c04d1a6b88b6627c445b12e329 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 2 Oct 2013 00:06:58 +0200 Subject: GUI: Initialize PredictiveDialog::_predictiveResult. This fixes garbage output when canceling the predictive dialog in AGI when nothing was entered. --- gui/predictivedialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gui') diff --git a/gui/predictivedialog.cpp b/gui/predictivedialog.cpp index c7d29468d8..41f6b103c4 100644 --- a/gui/predictivedialog.cpp +++ b/gui/predictivedialog.cpp @@ -144,6 +144,7 @@ PredictiveDialog::PredictiveDialog() : Dialog("Predictive") { _currentWord.clear(); _wordNumber = 0; _numMatchingWords = 0; + memset(_predictiveResult, 0, sizeof(_predictiveResult)); _lastbutton = kNoAct; _mode = kModePre; -- cgit v1.2.3