supermerill / SuperSlicer

G-code generator for 3D printers (Prusa, Voron, Creality, etc.)
4.03k stars 516 forks source link

fill_aligned_z: fix uninitialized atomic_int64_t #4279

Closed Icenowy closed 4 weeks ago

Icenowy commented 1 month ago

The behavior of atomic_int64_t's default constructor will leave it to an uninitialized state (accessing it will be undefined behavior).

Use 0 to explicitly initialize it because it will be soon compared and exchanged.