Use is_null()
This commit is contained in:
parent
5d8a44612d
commit
b1c77a7ea5
|
|
@ -74,7 +74,7 @@ where
|
||||||
.ssl_context()
|
.ssl_context()
|
||||||
.ex_data(callback_idx)
|
.ex_data(callback_idx)
|
||||||
.expect("BUG: psk callback missing") as *const F;
|
.expect("BUG: psk callback missing") as *const F;
|
||||||
let hint = if hint != ptr::null() {
|
let hint = if !hint.is_null() {
|
||||||
Some(CStr::from_ptr(hint).to_bytes())
|
Some(CStr::from_ptr(hint).to_bytes())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue