From 686d265c1f4a147ed25e0f65c97313ce17052de4 Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Wed, 30 Jul 2014 22:23:53 -0700 Subject: [PATCH] Fix for partial initialization of a struct. Found via valgrind. --- src/GAudioOutput.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GAudioOutput.cc b/src/GAudioOutput.cc index 2e405578c..ba2787b5e 100644 --- a/src/GAudioOutput.cc +++ b/src/GAudioOutput.cc @@ -94,7 +94,7 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent), #if defined Q_OS_LINUX && defined QGC_SPEECH_ENABLED espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 500, NULL, 0); // initialize for playback with 500ms buffer and no options (see speak_lib.h) - espeak_VOICE espeak_voice; + espeak_VOICE espeak_voice = {}; espeak_voice.languages = "en-uk"; // Default to British English espeak_voice.identifier = NULL; // no specific voice file specified espeak_voice.name = "klatt"; // espeak voice name -- 2.22.0