Closed elichai closed 3 years ago
This also removes the use of uninitialized integers, which are Undefined Behavior in rust, and replaced with a NULL pointer because it's an optional out argument that we don't make use of anyway (if I understood their docs correctly)
Source: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
An integer (i/u), floating point value (f*), or raw pointer obtained from uninitialized memory, or uninitialized memory in a str
This also removes the use of uninitialized integers, which are Undefined Behavior in rust, and replaced with a NULL pointer because it's an optional out argument that we don't make use of anyway (if I understood their docs correctly)
Source: https://doc.rust-lang.org/reference/behavior-considered-undefined.html