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

Skip to content
Commit c60c3691 authored by François Gaffie's avatar François Gaffie Committed by Eric Laurent
Browse files

audiopolicy: engineconfigurable: fix potential segfault if no default device



If no default device is available from configuration.xml, and if
the engine fallbacks on it anyway, it tries to get its type without checking
the pointer validity.

This CL fix the potential segfault and assert with explicit error message.

Test: build

Change-Id: Icf8d7f5ef998dad6f4033d934b48d408030c7e17
Signed-off-by: default avatarFrançois Gaffie <francois.gaffie@renault.com>
parent bc5c7de7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment