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

Commit 7ac1f99e authored by Yunlian Jiang's avatar Yunlian Jiang Committed by android-build-merger
Browse files

Merge "fix warning: Dereference of null pointer"

am: a2e67eb9

Change-Id: I37a6738f637cfa1a5fa0ccdf0ed7f3aa2986b207
parents fa4baa34 a2e67eb9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1917,7 +1917,7 @@ status_t AudioFlinger::openOutput(audio_module_handle_t module,
              config->channel_mask,
              flags);

    if (*devices == AUDIO_DEVICE_NONE) {
    if (devices == NULL || *devices == AUDIO_DEVICE_NONE) {
        return BAD_VALUE;
    }