Commit f3a83367 authored by Christian Stenger's avatar Christian Stenger

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() {
LanguageMerger merger;
merger.merge(m_list.at(i - 1).language());
do {
merger.merge(m_list.at(i++).language());
merger.merge(m_list.at(i).language());
if (++i == m_list.length())
break;
newPath = m_list.at(i).path();
......
Markdown is supported
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