commit a0c2328fd641cd0736ec72b36a2ee13550b614d7 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Jun 9 16:42:24 2016 +0200
Always initialize InsetQuote language in constructor Found by Coverity diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 039465d..ba5a127 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -100,6 +100,9 @@ InsetQuotes::InsetQuotes(Buffer * buf, char_type c, QuoteTimes t) { if (buf) language_ = buf->params().quotes_language; + else + language_ = EnglishQuotes; + setSide(c); }