Skip to content

Commit 6959372

Browse files
committed
fix #436: Initialize MonitorPrivate::changeFunc
1 parent 867b36e commit 6959372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scratch/monitor_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct MonitorPrivate
2222
std::shared_ptr<Script> script;
2323
std::shared_ptr<IBlockSection> blockSection;
2424
std::shared_ptr<Block> block; // Compiler needs shared_ptr
25-
MonitorChangeFunc changeFunc;
25+
MonitorChangeFunc changeFunc = nullptr;
2626
VirtualMachine changeValueVM;
2727
unsigned int width = 0;
2828
unsigned int height = 0;

0 commit comments

Comments
 (0)