use var sytax

This commit is contained in:
Mateusz Poliwczak 2022-12-20 16:22:16 +01:00
parent 278f77df44
commit 0967be3501
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ func cgoResSearch(hostname string, rtype, class int) ([]dnsmessage.Resource, err
s := _C_CString(hostname)
defer _C_FreeCString(s)
size := 0
var size int
for {
size, _ = _C_res_nsearch(state, s, class, rtype, buf, bufSize)
if size <= 0 || size > 0xffff {