// true URI
if(tmp[0] == ':' && tmp[1] == '/' && tmp[2] == '/')
{
- int hostlen, portlen, pathlen;
+ int hostlen, portlen;
tmp += 3; // Eat '://'
ret = malloc(sizeof(tURI) + protolen + 1 + strlen(tmp) + 1);
else
ret->Path = ret->Host + hostlen + 1;
- pathlen = 0;
strcpy(ret->Path, tmp);
return ret;