]> git.lyx.org Git - features.git/commitdiff
Always initialize InsetQuote language in constructor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 14:42:24 +0000 (16:42 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 14:42:24 +0000 (16:42 +0200)
Found by Coverity

src/insets/InsetQuotes.cpp

index 039465da448ade611c153c06a1ffbd70d6cf53bd..ba5a127564e0c5eb17d6e5d91ad6bcfc40fcfd0a 100644 (file)
@@ -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);
 }