This is an automated email from the ASF dual-hosted git repository. bcall pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 3299741278 Coverity 1508925: Uninitialized scalar field (#10512) 3299741278 is described below commit 32997412786f87f1dcc27314f17772e064bcfbd7 Author: Bryan Call <bc...@apache.org> AuthorDate: Mon Sep 25 12:38:47 2023 -0700 Coverity 1508925: Uninitialized scalar field (#10512) IPCSocketClient member _server wasn't initialized in the constructor --- include/shared/rpc/IPCSocketClient.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/shared/rpc/IPCSocketClient.h b/include/shared/rpc/IPCSocketClient.h index 250dee0e18..d738734a2a 100644 --- a/include/shared/rpc/IPCSocketClient.h +++ b/include/shared/rpc/IPCSocketClient.h @@ -45,8 +45,7 @@ struct IPCSocketClient { enum class ReadStatus { NO_ERROR = 0, BUFFER_FULL, STREAM_ERROR, UNKNOWN }; using self_reference = IPCSocketClient &; - IPCSocketClient(std::string path) : _path{std::move(path)} {} - IPCSocketClient() : _path{"/tmp/jsonrpc20.sock"} {} + IPCSocketClient(std::string path = "/tmp/jsonrpc20.sock") : _path{std::move(path)} { memset(&_server, 0, sizeof(_server)); } ~IPCSocketClient() { this->disconnect(); }