Skip to content

Commit

Permalink
Merge pull request #10 from tathanhdinh/checking_is_null
Browse files Browse the repository at this point in the history
Use is_null method to check if pointer is null
  • Loading branch information
joaomoreno authored Jul 16, 2019
2 parents aa0df7a + b630eee commit f8e8c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn kill_process_if(
process.id,
);

if handle == ptr::null_mut() {
if handle.is_null() {
return Err(io::Error::new(
io::ErrorKind::Other,
format!(
Expand Down

0 comments on commit f8e8c2e

Please sign in to comment.