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

Commit c2196d84 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

Camera: fix operator precedence bug

Test: none
Bug: 112135008
Change-Id: I518682026fbfdfbfda35de1921a00ef67e1272ee
parent 021c4195
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,7 +49,8 @@ void TagMonitor::parseTagsToMonitor(String8 tagNames) {
    std::lock_guard<std::mutex> lock(mMonitorMutex);

    // Expand shorthands
    if (ssize_t idx = tagNames.find("3a") != -1) {
    ssize_t idx = tagNames.find("3a");
    if (idx != -1) {
        ssize_t end = tagNames.find(",", idx);
        char* start = tagNames.lockBuffer(tagNames.size());
        start[idx] = '\0';