From: Thomas Jarosch Date: Mon, 22 Jun 2015 19:24:09 +0000 (+0200) Subject: Properly initialize FollowLinks in the default constructor X-Git-Tag: v2.8~26 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=027e0a1caf51e290bbb837c854ff3ef0a5304e9e;p=libi2ncommon Properly initialize FollowLinks in the default constructor Detected by cppcheck. --- diff --git a/src/filefunc.cpp b/src/filefunc.cpp index 2de5a93..33ef325 100644 --- a/src/filefunc.cpp +++ b/src/filefunc.cpp @@ -55,7 +55,8 @@ using namespace std; */ Stat::Stat() -: Valid(false) + : FollowLinks(true) + , Valid(false) { clear(); } // eo Stat::Stat()