From bada42c3348feaf5afd51fe181d108f4299e51ad Mon Sep 17 00:00:00 2001 From: Alexey Tumanov Date: Sat, 22 Dec 2018 19:51:22 -0800 Subject: [PATCH] object store notification mgr: fix using uninitialized variables (#3592) Initialize private class variables to avoid valgrind errors. They are used before initialization. --- src/ray/object_manager/object_store_notification_manager.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ray/object_manager/object_store_notification_manager.h b/src/ray/object_manager/object_store_notification_manager.h index 45d131602..1cac578ae 100644 --- a/src/ray/object_manager/object_store_notification_manager.h +++ b/src/ray/object_manager/object_store_notification_manager.h @@ -67,9 +67,9 @@ class ObjectStoreNotificationManager { plasma::PlasmaClient store_client_; int c_socket_; - int64_t length_; - int64_t num_adds_processed_; - int64_t num_removes_processed_; + int64_t length_ = 0; + int64_t num_adds_processed_ = 0; + int64_t num_removes_processed_ = 0; std::vector notification_; boost::asio::local::stream_protocol::socket socket_; };