ReadMe: update some typo
This commit is contained in:
@@ -23,7 +23,7 @@ ifndef CFLAGS
|
||||
ifdef DEBUG
|
||||
CFLAGS = -g
|
||||
else
|
||||
CFLAGS = -O2 -g
|
||||
CFLAGS = -O2
|
||||
endif
|
||||
CFLAGS +=-Wall -Wstrict-prototypes -fno-omit-frame-pointer -Wstrict-aliasing -funwind-tables -Wmissing-prototypes -Wshadow -Wextra -Wno-unused-parameter -Wno-implicit-fallthrough
|
||||
endif
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user