Merged
fix(machine): Initialize HostMachine curTask to nullptr #5886
chaizhengtongAdd on Sep 3
fix(machine): Initialize HostMachine curTask to nullptr #5886
Merged
Merged fromchai-hw/pypto_chaifix_hostmachineintocann/pyptomaster
Total: 1 files changed+1-1
| @@ -114,7 +114,7 @@ private: | |||
| 114 | private: | 114 | private: |
| 115 | std::atomic<bool> initialized_; | 115 | std::atomic<bool> initialized_; |
| 116 | HostMachineMode mode_; | 116 | HostMachineMode mode_; |
| 117 | - MachineTask* curTask; | 117 | + MachineTask* curTask{nullptr}; |
| 118 | 118 | ||
| 119 | std::atomic<uint64_t> curTaskId_{0}; | 119 | std::atomic<uint64_t> curTaskId_{0}; |
| 120 | std::atomic<bool> stopFlag_{false}; | 120 | std::atomic<bool> stopFlag_{false}; |