Skip to content

Commit

Permalink
configmgr: dont dereference invalid iterator
Browse files Browse the repository at this point in the history
i think the idea here was to print the key and not the iterator at or
past .end()
  • Loading branch information
gulafaran committed Aug 26, 2024
1 parent c23816f commit 3c4f847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ static bool parseModeLine(const std::string& modeline, drmModeModeInfo& mode) {
if (it != flagsmap.end())
mode.flags |= it->second;
else
Debug::log(ERR, "invalid flag {} in modeline", it->first);
Debug::log(ERR, "invalid flag {} in modeline", key);
}

snprintf(mode.name, sizeof(mode.name), "%dx%d@%d", mode.hdisplay, mode.vdisplay, mode.vrefresh / 1000);
Expand Down

0 comments on commit 3c4f847

Please sign in to comment.