summaryrefslogtreecommitdiff
path: root/src/netops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netops.c')
-rw-r--r--src/netops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netops.c b/src/netops.c
index dadc2bc00..3e6b93552 100644
--- a/src/netops.c
+++ b/src/netops.c
@@ -102,6 +102,7 @@ int gitno_connect(const char *host, const char *port)
ret = getaddrinfo(host, port, &hints, &info);
if (ret != 0) {
error = GIT_EOSERR;
+ info = NULL;
goto cleanup;
}