From 6b1fdf8ddaca6a25bf0aca7aff78f9594c29528f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 6 Feb 2014 14:57:09 +0100 Subject: Remove a memset that is not required Keep it in debug builds to ease debugging. Change-Id: I334872d3c0ef30b5f09fb5febfc2129a3b450bca Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4vme_moth.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/jsruntime/qv4vme_moth.cpp') diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp index a0a021af9a..4434c34ef8 100644 --- a/src/qml/jsruntime/qv4vme_moth.cpp +++ b/src/qml/jsruntime/qv4vme_moth.cpp @@ -334,7 +334,9 @@ QV4::ReturnedValue VME::run(QV4::ExecutionContext *context, const uchar *code TRACE(inline, "stack size: %u", instr.value); stackSize = instr.value; stack = context->engine->stackPush(stackSize); +#ifndef QT_NO_DEBUG memset(stack, 0, stackSize * sizeof(QV4::Value)); +#endif scopes[1] = stack; MOTH_END_INSTR(Push) -- cgit v1.2.3