diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-28 16:07:45 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-28 16:07:45 +0000 |
commit | afe488d4bc6469efd0dbab2d17daf00e2acf4ce8 (patch) | |
tree | 51c30dd606b728c16b34a27fc500a758a267d2ae | |
parent | 9d938732d0e613d97e59e37f8c251f945e0350ae (diff) | |
download | busybox-w32-afe488d4bc6469efd0dbab2d17daf00e2acf4ce8.tar.gz busybox-w32-afe488d4bc6469efd0dbab2d17daf00e2acf4ce8.tar.bz2 busybox-w32-afe488d4bc6469efd0dbab2d17daf00e2acf4ce8.zip |
work around gcc bug
-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 5c3083c25..224e80dc0 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -535,7 +535,9 @@ static void parse_url(char *src_url, struct host_info *h) | |||
535 | p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p; | 535 | p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p; |
536 | p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p; | 536 | p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p; |
537 | if (!sp) { | 537 | if (!sp) { |
538 | h->path = ""; | 538 | /* gcc 4.1.1 bug: h->path = "" puts "" in rodata! */ |
539 | static char nullstr[] = ""; | ||
540 | h->path = nullstr; | ||
539 | } else if (*sp == '/') { | 541 | } else if (*sp == '/') { |
540 | *sp = '\0'; | 542 | *sp = '\0'; |
541 | h->path = sp + 1; | 543 | h->path = sp + 1; |