Skip to content
Snippets Groups Projects
Commit 0a1e002c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Jörn fixed it to compile on win32 again

parent 9195bb64
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,9 @@ CURLcode Curl_file_connect(struct connectdata *conn)
char *actual_path = curl_unescape(conn->path, 0);
struct FILE *file;
int fd;
#if defined(WIN32) || defined(__EMX__)
int i;
#endif
file = (struct FILE *)malloc(sizeof(struct FILE));
if(!file)
......@@ -106,8 +109,6 @@ CURLcode Curl_file_connect(struct connectdata *conn)
conn->proto.file = file;
#if defined(WIN32) || defined(__EMX__)
int i;
/* change path separators from '/' to '\\' for Windows and OS/2 */
for (i=0; actual_path[i] != '\0'; ++i)
if (actual_path[i] == '/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment