Commit 48154450 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

[C++] Fix crash for missing token after #include directive.



Change-Id: Ia54c5ddc801962c89dc0483f5912f1de436b8f43
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@nokia.com>
parent 808097af
...@@ -1130,6 +1130,11 @@ void Preprocessor::handleIncludeDirective(PPToken *tk) ...@@ -1130,6 +1130,11 @@ void Preprocessor::handleIncludeDirective(PPToken *tk)
} }
included = included.trimmed(); included = included.trimmed();
if (included.isEmpty()) {
//### TODO: error message
return;
}
// qDebug("include [[%s]]", included.toUtf8().constData()); // qDebug("include [[%s]]", included.toUtf8().constData());
Client::IncludeType mode; Client::IncludeType mode;
if (included.at(0) == '"') if (included.at(0) == '"')
......
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