Skip to content

Commit

Permalink
compiler warnings: potentially uninitialized variables
Browse files Browse the repository at this point in the history
... pointed out by MSVC2013

Bug: http://curl.haxx.se/bug/view.cgi?id=1391
  • Loading branch information
Marcel Raad authored and bagder committed Jul 4, 2014
1 parent ca2aa61 commit 8ffe6f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/connect.c
Expand Up @@ -551,7 +551,7 @@ static CURLcode trynextip(struct connectdata *conn,

if(sockindex == FIRSTSOCKET) {
Curl_addrinfo *ai = NULL;
int family;
int family = AF_UNSPEC;

if(conn->tempaddr[tempindex]) {
/* find next address in the same protocol family */
Expand Down
2 changes: 1 addition & 1 deletion lib/easy.c
Expand Up @@ -674,7 +674,7 @@ static CURLcode easy_transfer(CURLM *multi)
curl_multi_wait() without any filedescriptors */

while(!done && !mcode) {
int still_running;
int still_running = 0;
int ret;

before = curlx_tvnow();
Expand Down
2 changes: 1 addition & 1 deletion lib/url.c
Expand Up @@ -5137,7 +5137,7 @@ static CURLcode create_conn(struct SessionHandle *data,
char *proxy = NULL;
bool prot_missing = FALSE;
bool no_connections_available = FALSE;
bool force_reuse;
bool force_reuse = FALSE;
size_t max_host_connections = Curl_multi_max_host_connections(data->multi);
size_t max_total_connections = Curl_multi_max_total_connections(data->multi);

Expand Down

0 comments on commit 8ffe6f5

Please sign in to comment.