From 5743b2ddcdb89c539d1243ed7e2e96b4294c2f0d Mon Sep 17 00:00:00 2001 From: Ben Shi <807629978@qq.com> Date: Thu, 27 Jun 2024 22:10:57 +0800 Subject: [PATCH] add http proxy handler --- src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 3accb3f..ac9d128 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,9 +44,6 @@ macro_rules! box_to_mut_void_ptr { pub(crate) fn as_cstr_array> + Clone>( arr: &[T], ) -> *mut *const ::std::os::raw::c_char { - if arr.is_empty() { - return std::ptr::null_mut(); - } let mut tmp: Vec<_> = arr .iter() .map(|s| std::ffi::CString::new::(s.to_owned()).unwrap())