clang-tidy nullptr

This commit is contained in:
Erik Frojdh
2019-05-14 17:11:27 +02:00
parent 74d67261a9
commit 55f482f915
3 changed files with 6 additions and 6 deletions

View File

@ -83,7 +83,7 @@ uint32_t HostnameToIp(const char *hostname) {
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
if (getaddrinfo(hostname, NULL, &hints, &result)) {
if (getaddrinfo(hostname, nullptr, &hints, &result)) {
freeaddrinfo(result);
throw RuntimeError("Could not convert hostname to ip");
}