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

Commit b23ba1dd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix warning: Dereference of null pointer."

parents aadc3369 32ba9862
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;
    }