This is an automated email from the ASF dual-hosted git repository.

bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 5648764c47cc151dccbe0dc6ec391987699aec5d
Author: Benjamin Bannier <bbann...@apache.org>
AuthorDate: Mon Jan 13 10:24:05 2020 +0100

    Properly initialized dummy variable.
    
    Since `Try` does not have a default constructor we need to provide a
    dummy value.
    
    Review: https://reviews.apache.org/r/71985
---
 src/slave/main.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/slave/main.cpp b/src/slave/main.cpp
index 9e40743..b5715d9 100644
--- a/src/slave/main.cpp
+++ b/src/slave/main.cpp
@@ -645,7 +645,8 @@ int main(int argc, char** argv)
       Try<std::vector<int>> socketFds =
         systemd::socket_activation::listenFdsWithName(name);
 #else
-      Try<std::vector<int>> socketFds; // Dummy to avoid compile errors.
+      Try<std::vector<int>> socketFds =
+        Try<std::vector<int>>({}); // Dummy to avoid compile errors.
       EXIT(EXIT_FAILURE)
         << "Systemd socket passing is only supported on linux.";
 #endif

Reply via email to