Properly initialize FollowLinks in the default constructor
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 22 Jun 2015 19:24:09 +0000 (21:24 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 22 Jun 2015 19:24:12 +0000 (21:24 +0200)
Detected by cppcheck.

src/filefunc.cpp

index 2de5a93..33ef325 100644 (file)
@@ -55,7 +55,8 @@ using namespace std;
 */
 
 Stat::Stat()
-: Valid(false)
+    : FollowLinks(true)
+    , Valid(false)
 {
    clear();
 } // eo Stat::Stat()