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

Commit 32ba9862 authored by Yunlian Jiang's avatar Yunlian Jiang
Browse files

Fix warning: Dereference of null pointer.

Bug: None
Test: The warning is gone.
Change-Id: I4c08397c0ee18c7714eb9b1029844d427259907b
parent a1ee4c28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1878,7 +1878,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;
    }