diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2014-04-19 15:18:19 +0200 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2014-04-19 15:18:19 +0200 |
commit | f9ffbfce909fe68b476f2fcd046508a45066b35d (patch) | |
tree | bc94db7bbc3661962971a8a473d3abffce53d670 | |
parent | aa0fbe35378e8b6cda26e41c6c91337948803198 (diff) |
telnet.c: fix possible use of uninitialized variable
-rw-r--r-- | lib/telnet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c index 12a0580d7..f8946f494 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -1491,6 +1491,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done) case WAIT_OBJECT_0: + events.lNetworkEvents = 0; if(SOCKET_ERROR == enum_netevents_func(sockfd, event_handle, &events)) { if((err = SOCKERRNO) != EINPROGRESS) { infof(data,"WSAEnumNetworkEvents failed (%d)", err); |