libcamera: proxy: linux: Initialise pointer members at construction time
If the IPAProxyLinux constructor fails to locate the proxy worker, the socket_ and proc_ member pointers will be left uninitialised, leading the a crash in the destructor. Initialise them both to nullptr. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
4ec807192d
commit
448393f77e
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ int IPAProxyLinux::init()
|
|||
}
|
||||
|
||||
IPAProxyLinux::IPAProxyLinux(IPAModule *ipam)
|
||||
: proc_(nullptr), socket_(nullptr)
|
||||
{
|
||||
LOG(IPAProxy, Debug)
|
||||
<< "initializing dummy proxy: loading IPA from "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue