schannel SSL: fix compiler warning
authorYang Tse <yangsita@gmail.com>
Wed, 20 Jun 2012 20:26:51 +0000 (22:26 +0200)
committerYang Tse <yangsita@gmail.com>
Wed, 20 Jun 2012 20:26:51 +0000 (22:26 +0200)
lib/curl_schannel.c

index 0c51be6552b4a4341ad00cc272973cd8cf7ed85d..c7d0468fd488a1670d31eea5a9c6fc96515d66b4 100644 (file)
@@ -290,7 +290,9 @@ schannel_connect_step2(struct connectdata *conn, int sockindex)
   SECURITY_STATUS sspi_status = SEC_E_OK;
   TCHAR *host_name;
   CURLcode code;
-  bool doread = connssl->connecting_state != ssl_connect_2_writing;
+  bool doread;
+
+  doread = (connssl->connecting_state != ssl_connect_2_writing)?TRUE:FALSE;
 
   infof(data, "schannel: SSL/TLS connection with %s port %hu (step 2/3)\n",
         conn->host.name, conn->remote_port);