correct wget's comment
This commit is contained in:
parent
4bb31899e5
commit
de55b5d014
@ -535,7 +535,7 @@ static void parse_url(char *src_url, struct host_info *h)
|
|||||||
p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p;
|
p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p;
|
||||||
p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p;
|
p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p;
|
||||||
if (!sp) {
|
if (!sp) {
|
||||||
/* gcc 4.1.1 bug: h->path = "" puts "" in rodata! */
|
/* must be writable because of bb_get_last_path_component() */
|
||||||
static char nullstr[] = "";
|
static char nullstr[] = "";
|
||||||
h->path = nullstr;
|
h->path = nullstr;
|
||||||
} else if (*sp == '/') {
|
} else if (*sp == '/') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user