svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Sun Jan 28 16:07:45 UTC 2007


Author: vda
Date: 2007-01-28 08:07:45 -0800 (Sun, 28 Jan 2007)
New Revision: 17601

Log:
work around gcc bug


Modified:
   trunk/busybox/networking/wget.c


Changeset:
Modified: trunk/busybox/networking/wget.c
===================================================================
--- trunk/busybox/networking/wget.c	2007-01-28 15:31:19 UTC (rev 17600)
+++ trunk/busybox/networking/wget.c	2007-01-28 16:07:45 UTC (rev 17601)
@@ -535,7 +535,9 @@
 	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;




More information about the busybox-cvs mailing list