Commit 29199aa4 authored by Shenghou Ma's avatar Shenghou Ma

cmd/gc: import path cannot start with slash on Windows

        For CL 5756065.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5784065
parent 6d4da06d
......@@ -514,7 +514,7 @@ addidir(char* dir)
static int
islocalname(Strlit *name)
{
if(!windows && name->len >= 1 && name->s[0] == '/')
if(name->len >= 1 && name->s[0] == '/')
return 1;
if(windows && name->len >= 3 &&
yy_isalpha(name->s[0]) && name->s[1] == ':' && name->s[2] == '/')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment