]> granicus.if.org Git - curl/commitdiff
fix a mingw32 build warning
authorDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jul 2004 07:48:47 +0000 (07:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Jul 2004 07:48:47 +0000 (07:48 +0000)
lib/telnet.c

index 472cd8f53ff7de97d95229f9214e60065d831b0c..f5381aa741d3510ba65aca0c81030afc2e460410 100644 (file)
@@ -1207,10 +1207,11 @@ CURLcode Curl_telnet(struct connectdata *conn)
       char *buffer = buf;
 
       for(;;) {
-        if(!PeekNamedPipe(stdin_handle,NULL,0,NULL,&nread,NULL)) {
+        if(!PeekNamedPipe(stdin_handle, NULL, 0, NULL, &readfile_read, NULL)) {
           keepon = FALSE;
           break;
         }
+        nread = readfile_read;
 
         if(!nread)
           break;