summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-09-22 08:59:54 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-09-22 09:01:42 -0400
commit7b7806b85096391e364a03ef3551970620b5492e (patch)
treece5416a3f49a79e941e93197c31bdc917ec45d82 /netlib.c
parent00b768d7ec851a5cff99d5a6ac169e789438001f (diff)
downloadgpsd-7b7806b85096391e364a03ef3551970620b5492e.tar.gz
Lose the assumption that socket_t is an integer.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/netlib.c b/netlib.c
index e09406e2..5adc9a89 100644
--- a/netlib.c
+++ b/netlib.c
@@ -33,6 +33,7 @@ socket_t netlib_connectsock(int af, const char *host, const char *service,
socket_t s = -1;
bool bind_me;
+ INVALIDATE_SOCKET(s);
/*@-type@*/
ppe = getprotobyname(protocol);
if (strcmp(protocol, "udp") == 0) {