diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-01-17 16:09:25 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-17 16:27:21 +0100 |
commit | 0eabb34843cd282e10d96075a98f8795399bcd5d (patch) | |
tree | 6b00d3199f9de6ec7630a70650c1986cf008756f /src/qml/jsruntime | |
parent | a0494a2092d7512a2b0d568a21058ed77b0cea11 (diff) |
Fix uninitialized variable in debug builds
Initialize size to zero in both constructors. This should fix UMRs.
Change-Id: I6888f667b3dc6b2e72e58b54288c3c88df3ced71
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r-- | src/qml/jsruntime/qv4scopedvalue_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4scopedvalue_p.h b/src/qml/jsruntime/qv4scopedvalue_p.h index 21f45745cb..2c71a36a3d 100644 --- a/src/qml/jsruntime/qv4scopedvalue_p.h +++ b/src/qml/jsruntime/qv4scopedvalue_p.h @@ -65,6 +65,9 @@ struct Scope { explicit Scope(ExecutionEngine *e) : engine(e) +#ifndef QT_NO_DEBUG + , size(0) +#endif { mark = engine->jsStackTop; } |