aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2012-06-12 12:10:33 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2012-06-12 12:10:33 +0200
commitf3933836fbaba174471b2504588ade874634b67d (patch)
treeb51b474c30c376fea3bc926883eeae2f097bb50e /main.cpp
parentb759b5f984d35d5ce95097572bd8524cfd2210fc (diff)
Fix possible crash when executing invalid code.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 28a92935a6..ed4985feac 100644
--- a/main.cpp
+++ b/main.cpp
@@ -215,6 +215,9 @@ void evaluate(QQmlJS::VM::ExecutionEngine *vm, const QString &fileName, const QS
isel(function);
}
}
+
+ if (! globalCode)
+ return;
}
if (!useMoth) {