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:
saxon 2018-08-10 13:37:35 +09:30
parent e9fc1927b3
commit 7cea7c5628
1 changed files with 1 additions and 2 deletions

View File

@ -703,8 +703,7 @@ func C_RTMP_Connect(r *C.RTMP, cp *C.RTMPPacket) int {
if r.Link.hostname.av_len == 0 { if r.Link.hostname.av_len == 0 {
return 0 return 0
} }
var tmp C.sockaddr_in memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(service)))
memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(tmp)))
// TODO: port this // TODO: port this
service.sin_family = C.AF_INET service.sin_family = C.AF_INET