mirror of https://bitbucket.org/ausocean/av.git
rtmp: remove unnecessary zeroing
This commit is contained in:
parent
eeb1e1933b
commit
55e454453b
|
@ -425,7 +425,6 @@ func C_RTMP_Connect(r *C_RTMP, cp *C_RTMPPacket) (ok bool) {
|
||||||
if r.Link.hostname == "" {
|
if r.Link.hostname == "" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
memset((*byte)(unsafe.Pointer(&service)), 0, int(unsafe.Sizeof(service)))
|
|
||||||
|
|
||||||
// TODO: port this
|
// TODO: port this
|
||||||
service.sin_family = C.AF_INET
|
service.sin_family = C.AF_INET
|
||||||
|
|
Loading…
Reference in New Issue