Skip to content

Commit

Permalink
Coverity 1508836: Uninitialized pointer field in JsonRPCManager (#10898)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryancall authored Dec 6, 2023
1 parent 9d9e72b commit 70d5c4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/mgmt/rpc/jsonrpc/JsonRPCManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ class JsonRPCManager
// 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
Expand Down

0 comments on commit 70d5c4e

Please sign in to comment.