Commit f3a83367 authored by Christian Stenger's avatar Christian Stenger
Browse files

QmlJS: Avoid accessing list after last element



Change-Id: I4d3f273c157db98615c9aee0152b04dd41f3e1fa
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 5da75dba
...@@ -298,7 +298,7 @@ void PathsAndLanguages::compact() { ...@@ -298,7 +298,7 @@ void PathsAndLanguages::compact() {
LanguageMerger merger; LanguageMerger merger;
merger.merge(m_list.at(i - 1).language()); merger.merge(m_list.at(i - 1).language());
do { do {
merger.merge(m_list.at(i++).language()); merger.merge(m_list.at(i).language());
if (++i == m_list.length()) if (++i == m_list.length())
break; break;
newPath = m_list.at(i).path(); newPath = m_list.at(i).path();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment