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 70d5c4e1a5 Coverity 1508836: Uninitialized pointer field in 
JsonRPCManager (#10898)
70d5c4e1a5 is described below

commit 70d5c4e1a523a9b693474dbc673941b62e7f9783
Author: Bryan Call <bc...@apache.org>
AuthorDate: Tue Dec 5 19:39:18 2023 -0800

    Coverity 1508836: Uninitialized pointer field in JsonRPCManager (#10898)
---
 include/mgmt/rpc/jsonrpc/JsonRPCManager.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/mgmt/rpc/jsonrpc/JsonRPCManager.h 
b/include/mgmt/rpc/jsonrpc/JsonRPCManager.h
index 58bc667ad2..56b2d71e80 100644
--- a/include/mgmt/rpc/jsonrpc/JsonRPCManager.h
+++ b/include/mgmt/rpc/jsonrpc/JsonRPCManager.h
@@ -272,8 +272,9 @@ private:
       // We support these three for now. This can easily be extended to 
support other signatures.
       // that's one of the main points of the InternalHandler
       std::variant<std::monostate, Notification, Method, PluginMethod> _func;
-      const RPCRegistryInfo *_regInfo; ///< Can hold internal information 
about the handler, this could be null as it is optional.
-                                       ///< This pointer can eventually holds 
important information about the call.
+      const RPCRegistryInfo *_regInfo =
+        nullptr; ///< Can hold internal information about the handler, this 
could be null as it is optional.
+                 ///< This pointer can eventually holds important information 
about the call.
       TSRPCHandlerOptions _options;
     };
     // We will keep all the handlers wrapped inside the InternalHandler class, 
this will help us

Reply via email to