]> granicus.if.org Git - curl/commitdiff
sws.c: Fixed warning: 'err' may be used uninitialized in this function
authorMarc Hoersken <info@marc-hoersken.de>
Tue, 11 Sep 2012 09:48:27 +0000 (11:48 +0200)
committerMarc Hoersken <info@marc-hoersken.de>
Tue, 11 Sep 2012 09:48:27 +0000 (11:48 +0200)
tests/server/sws.c

index af867bdb3a2f5aa8b307ba48304ba49a58bda3c4..29102748156325b66d788df485e82695a9f16529 100644 (file)
@@ -1456,7 +1456,7 @@ static void http_connect(curl_socket_t *infdp,
         curl_socket_t datafd = accept(rootfd, NULL, NULL);
         if(datafd != CURL_SOCKET_BAD) {
           struct httprequest req2;
-          int err;
+          int err = 0;
           memset(&req2, 0, sizeof(req2));
           logmsg("====> Client connect DATA");
 #ifdef TCP_NODELAY