mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Remove desbug
svn path=/trunk/netsurf/; revision=10630
This commit is contained in:
parent
d4c519cc05
commit
82af25f4e2
@ -70,7 +70,8 @@ char *url_to_path(const char *url)
|
||||
if (strncmp(url, "localhost", SLEN("localhost")) == 0)
|
||||
url += SLEN("localhost");
|
||||
|
||||
url += SLEN("/");
|
||||
if (strncmp(url, "/", SLEN("/")) == 0)
|
||||
url += SLEN("/");
|
||||
|
||||
url2 = malloc(strlen(url) + 2);
|
||||
strcpy(url2, url);
|
||||
@ -122,7 +123,7 @@ char *path_to_url(const char *path)
|
||||
|
||||
strcpy(r, "file:///");
|
||||
strcat(r, newpath);
|
||||
printf("ptu %s => %s\n",path, r);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user