From 33e8d6f456f87fca140eba4c6187b3f1ed025a90 Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Mon, 14 Oct 2013 11:56:49 +0100
Subject: [PATCH] STYLE: fileMonitor: initialise variable

---
 src/OSspecific/POSIX/fileMonitor.C | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/OSspecific/POSIX/fileMonitor.C b/src/OSspecific/POSIX/fileMonitor.C
index 936e815717f..870e71d8e7e 100644
--- a/src/OSspecific/POSIX/fileMonitor.C
+++ b/src/OSspecific/POSIX/fileMonitor.C
@@ -133,7 +133,8 @@ namespace Foam
         //- initialise inotify
         inline fileMonitorWatcher(const bool useInotify, const label sz = 20)
         :
-            useInotify_(useInotify)
+            useInotify_(useInotify),
+            inotifyFd_(-1)
         {
             if (useInotify_)
             {
-- 
GitLab