diff options
Diffstat (limited to 'networking')
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c index 5c3083c..224e80d 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -535,7 +535,9 @@ 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; if (!sp) { - h->path = ""; + /* gcc 4.1.1 bug: h->path = "" puts "" in rodata! */ + static char nullstr[] = ""; + h->path = nullstr; } else if (*sp == '/') { *sp = '\0'; h->path = sp + 1; |