From 6125590a7b2bbad7d5efdfbab69ba86601e0769b Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Tue, 20 Apr 2021 12:57:45 -0400
Subject: log/backend: Use in-class initializer for FileBackend

We can also avoid redundant constructions of the same string repeatedly.
---
 src/common/logging/backend.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/common/logging/backend.h')

diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index 84a544ea44..9dd2589c3c 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -94,8 +94,8 @@ public:
     void Write(const Entry& entry) override;
 
 private:
-    Common::FS::IOFile file;
-    std::size_t bytes_written;
+    FS::IOFile file;
+    std::size_t bytes_written = 0;
 };
 
 /**
-- 
cgit v1.2.3-70-g09d2