Skip to content

Commit 0476ddb

Browse files
committed
Simplify code
1 parent 68d46bd commit 0476ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ssl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const infotype_str = Dict(
2323

2424
function curl_debug_cb(handle::Ptr{Cvoid}, type::Cint, data::Ptr{Cvoid}, sz::Csize_t, clientp::Ptr{Cvoid})
2525
debug_buffer = unsafe_pointer_to_objref(clientp)::IOBuffer
26-
data = UInt8[unsafe_load(reinterpret(Ptr{Cuchar}, data), n) for n in 1:sz]
26+
data = unsafe_wrap(Array, reinterpret(Ptr{UInt8}, data), sz)
2727
println(debug_buffer, "$(infotype_str[type]) \"$(String(data))\"")
2828
return Cint(0)
2929
end

0 commit comments

Comments
 (0)