projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d93873
)
work around gcc bug
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Jan 2007 16:07:45 +0000
(16:07 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 28 Jan 2007 16:07:45 +0000
(16:07 -0000)
networking/wget.c
patch
|
blob
|
history
diff --git
a/networking/wget.c
b/networking/wget.c
index
5c3083c
..
224e80d
100644
(file)
--- 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;