]> git.lyx.org Git - lyx.git/commitdiff
Initialize bool member of Package in default constructor
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 15:26:55 +0000 (17:26 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Jun 2016 15:26:55 +0000 (17:26 +0200)
Found by Coverity

src/support/Package.h

index c7befb369e04ae287311bd19653541200733d329..4e5c6fa3f46e78f11ba64ab80ca0304ae5e017bf 100644 (file)
@@ -51,7 +51,7 @@ Package const & package();
 class Package {
 public:
        /// Default constructor does not lead to the paths being set.
-       Package() {}
+       Package() : explicit_user_support_dir_(false), in_build_dir_(false) {}
 
        /** Called by init_package, above.
         *  All paths will be initialized.