ReadMe: update some typo

This commit is contained in:
Nick Peng
2023-02-24 19:52:38 +08:00
parent 2ca4c92c9f
commit b473b9c6e1
4 changed files with 23 additions and 18 deletions

View File

@@ -329,6 +329,10 @@ static struct addrinfo *_fast_ping_getaddr(const char *host, const char *port, i
struct addrinfo hints;
struct addrinfo *result = NULL;
int errcode = 0;
if (host == NULL || port == NULL) {
goto errout;
}
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;