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

Skip to content
Commit 22386229 authored by George Burgess IV's avatar George Burgess IV Committed by George Burgess
Browse files

Spatializer: add missing `return`

It seems that we intended to return here. Otherwise, we'll deref NULL
below.

If68c99f39040984ff46e27779f211fdfe3126da5 adds attributes to these
functions that will have `clang` emit warnings if their results aren't
used.

Caught by the static analyzer:
> frameworks/av/services/audiopolicy/service/Spatializer.cpp:558:13:
warning: Dereference of null pointer (loaded from variable 'output')
[clang-analyzer-core.NullDereference]

Bug: 188502620
Test: TreeHugger
Change-Id: Idced7c095b6617349737449cf5451abdb22ea6ed
parent 76f1d33e
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