]> git.lyx.org Git - features.git/commitdiff
Fix uninitialized members in Language constructor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Mar 2015 11:17:52 +0000 (12:17 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 5 Mar 2015 11:17:52 +0000 (12:17 +0100)
Fixes coverity issue 23412.

src/Language.h

index 177e55d8f624f9f1f5b03507a6e15805296a333a..b532d9ce5deccdf9c3a741370c8cb6112cd80b67 100644 (file)
@@ -32,7 +32,8 @@ class Lexer;
 class Language {
 public:
        ///
-       Language() : rightToLeft_(false) {}
+       Language() : rightToLeft_(false), encoding_(0), internal_enc_(false),
+                                as_babel_options_(false) {}
        /// LyX language name
        std::string const lang() const { return lang_; }
        /// Babel language name