Explorar el Código

Use ptr::null over 0

jD91mZM2 hace 6 años
padre
commit
541fbcf57c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/unistd/src/lib.rs

+ 1 - 1
src/unistd/src/lib.rs

@@ -33,7 +33,7 @@ pub const STDOUT_FILENO: c_int = 1;
 pub const STDERR_FILENO: c_int = 2;
 
 #[no_mangle]
-pub static mut environ: *const *mut c_char = 0 as *const *mut c_char;
+pub static mut environ: *const *mut c_char = ptr::null();
 
 #[no_mangle]
 pub extern "C" fn _exit(status: c_int) {