Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66cc8da0 authored by Thierry Strudel's avatar Thierry Strudel
Browse files

soundtrigger: initialize mHwDevice member in constructor



audioserver crashes when sound_trigger legacy HAL does not exist on the device,
as mHwDevice is not initialized to NULL.

Bug: 32022304
Change-Id: I47642927e91c03817508d462cfcc58370e89b184
Signed-off-by: default avatarThierry Strudel <tstrudel@google.com>
parent 43511435
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ exit:
}

SoundTriggerHalImpl::SoundTriggerHalImpl(const char *moduleName)
    : mModuleName(moduleName), mNextModelId(1)
    : mModuleName(moduleName), mHwDevice(NULL), mNextModelId(1)
{
}