]> granicus.if.org Git - curl/commitdiff
compiler warning: fix
authorYang Tse <yangsita@gmail.com>
Mon, 23 May 2011 17:04:49 +0000 (19:04 +0200)
committerYang Tse <yangsita@gmail.com>
Mon, 23 May 2011 17:04:49 +0000 (19:04 +0200)
Fix variable declaration placement

lib/http_ntlm.c

index cb7ef2c3bed9bd4fdba0efd3dadea2d47182a701..bcb844208074db103cb6b6282e0b68f67d03ea11 100644 (file)
@@ -949,7 +949,6 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
     SECURITY_STATUS status;
     ULONG attrs;
     TimeStamp tsDummy; /* For Windows 9x compatibility of SPPI calls */
-    CURLcode res;
 
     type_2_desc.ulVersion  = type_3_desc.ulVersion  = SECBUFFER_VERSION;
     type_2_desc.cBuffers   = type_3_desc.cBuffers   = 1;
@@ -993,6 +992,7 @@ CURLcode Curl_output_ntlm(struct connectdata *conn,
     size_t useroff;
     const char *user;
     size_t userlen;
+    CURLcode res;
 
     user = strchr(userp, '\\');
     if(!user)