aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c
index f4cd5f2f8..4e08c03bc 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -125,7 +125,8 @@ CURLcode Curl_file_connect(struct connectdata *conn)
with a drive letter.
*/
actual_path = real_path;
- if (*actual_path == '/' &&
+ if ((actual_path[0] == '/') &&
+ actual_path[1] &&
(actual_path[2] == ':' || actual_path[2] == '|'))
{
actual_path[2] = ':';