Skip to content

Commit 9d3852b

Browse files
committed
Script: Initialize members
1 parent 06526cf commit 9d3852b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/engine/script_p.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ struct ScriptPrivate
1919
ScriptPrivate(Target *target, IEngine *engine);
2020
ScriptPrivate(const ScriptPrivate &) = delete;
2121

22-
unsigned int *bytecode;
22+
unsigned int *bytecode = nullptr;
2323
std::vector<unsigned int> bytecodeVector;
2424

25-
Target *target;
26-
IEngine *engine;
25+
Target *target = nullptr;
26+
IEngine *engine = nullptr;
2727

2828
unsigned int **procedures = nullptr;
2929
std::vector<unsigned int *> proceduresVector;
3030

31-
BlockFunc *functions;
31+
BlockFunc *functions = nullptr;
3232
std::vector<BlockFunc> functionsVector;
3333

3434
const Value *constValues = nullptr;

0 commit comments

Comments
 (0)