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

Commit c5d93287 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Initialize variable protocolMode before it is used"

parents 31c02c5a 18b51777
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -315,7 +315,8 @@ static jboolean getProtocolModeNative(JNIEnv *env, jobject object, jbyteArray ad
    bt_status_t status;
    jbyte *addr;
    jboolean ret = JNI_TRUE;
    bthh_protocol_mode_t protocolMode;
    // TODO: protocolMode is unused by the backend: see b/28908173
    bthh_protocol_mode_t protocolMode = BTHH_UNSUPPORTED_MODE;
    if (!sBluetoothHidInterface) return JNI_FALSE;

    addr = env->GetByteArrayElements(address, NULL);