From 91d8a3982d4acd9118217b4d30a5500e3bbd178e Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 1 Mar 2017 17:02:20 +0100 Subject: [PATCH] Initialize properly several InsetQuote members Spotted by coverity --- src/insets/InsetQuotes.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 88f3979007..7032a068a3 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -606,7 +606,10 @@ docstring const InsetQuotesParams::getShortGuiLabel(docstring const string) // /////////////////////////////////////////////////////////////////////// -InsetQuotes::InsetQuotes(Buffer * buf, string const & str) : Inset(buf) +InsetQuotes::InsetQuotes(Buffer * buf, string const & str) + : Inset(buf), + style_(InsetQuotesParams::EnglishQuotes), side_(InsetQuotesParams::OpeningQuote), + pass_thru_(false) { if (buf) { global_style_ = buf->masterBuffer()->params().quotes_style;