Fix uninit-var bug in tcpip_straddr.
[yaz-moved-to-github.git] / src / tcpip.c
index 50c0622..cb2883c 100644 (file)
@@ -423,7 +423,7 @@ void *tcpip_straddr(COMSTACK h, const char *str)
 {
     tcpip_state *sp = (tcpip_state *)h->cprivate;
     const char *port = "210";
-    struct addrinfo *ai;
+    struct addrinfo *ai = 0;
     if (h->protocol == PROTO_HTTP)
         port = "80";
     if (!tcpip_init())