Skip to content

Commit 29cc972

Browse files
committed
SSL_CIPHER_description: remove dead store of size
1 parent d8054dc commit 29cc972

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/entry.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,9 +1571,12 @@ entry! {
15711571
entry! {
15721572
pub fn _SSL_CIPHER_description(
15731573
cipher: *const SSL_CIPHER,
1574-
mut buf: *mut c_char,
1575-
mut size: c_int,
1574+
buf: *mut c_char,
1575+
size: c_int,
15761576
) -> *mut c_char {
1577+
// rebind inside `ffi_panic_boundary` closure to make `unused_assignments` lint
1578+
// more accurate
1579+
let mut buf = buf;
15771580
let description = try_ref_from_ptr!(cipher).description;
15781581
let required_len = description.to_bytes_with_nul().len();
15791582

@@ -1587,7 +1590,6 @@ entry! {
15871590
return allocd;
15881591
}
15891592
buf = allocd;
1590-
size = required_len as i32;
15911593
} else if size < (required_len as i32) {
15921594
return ptr::null_mut();
15931595
}

0 commit comments

Comments
 (0)