summaryrefslogtreecommitdiffstats
path: root/raul/Socket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Socket.hpp')
-rw-r--r--raul/Socket.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/raul/Socket.hpp b/raul/Socket.hpp
index df7645a..579a5cd 100644
--- a/raul/Socket.hpp
+++ b/raul/Socket.hpp
@@ -175,9 +175,8 @@ Socket::set_addr(const std::string& uri)
host = "0.0.0.0"; // INADDR_ANY
}
- struct addrinfo* ainfo;
- int st = 0;
- if ((st = getaddrinfo(host.c_str(), port.c_str(), nullptr, &ainfo))) {
+ struct addrinfo* ainfo = nullptr;
+ if (getaddrinfo(host.c_str(), port.c_str(), nullptr, &ainfo)) {
return false;
}