mirror of https://bitbucket.org/ausocean/av.git
Removed var tmp in C_RTMP_Connect for use in memset size determination, can just use var service created above
This commit is contained in:
parent
e9fc1927b3
commit
7cea7c5628
|
@ -703,8 +703,7 @@ func C_RTMP_Connect(r *C.RTMP, cp *C.RTMPPacket) int {
|
|||
if r.Link.hostname.av_len == 0 {
|
||||
return 0
|
||||
}
|
||||
var tmp C.sockaddr_in
|
||||
memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(tmp)))
|
||||
memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(service)))
|
||||
|
||||
// TODO: port this
|
||||
service.sin_family = C.AF_INET
|
||||
|
|
Loading…
Reference in New Issue