From: Denis Vlasenko Date: Sun, 28 Jan 2007 16:07:45 +0000 (-0000) Subject: work around gcc bug X-Git-Tag: 1_5_1~258 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=afe488d4bc6469efd0dbab2d17daf00e2acf4ce8;p=oweals%2Fbusybox.git work around gcc bug --- 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) 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;