summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2002-03-19 15:22:42 +0000
committerMatt Kraai <kraai@debian.org>2002-03-19 15:22:42 +0000
commit0efab3319dddf1cf308e7476b7cd28f350faa917 (patch)
treeba40380804ff6005fde57c94441230d289ef9d5d /networking/wget.c
parent3b1cbd7bec7fe53637621972469b4663413ea7ce (diff)
downloadbusybox-w32-0efab3319dddf1cf308e7476b7cd28f350faa917.tar.gz
busybox-w32-0efab3319dddf1cf308e7476b7cd28f350faa917.tar.bz2
busybox-w32-0efab3319dddf1cf308e7476b7cd28f350faa917.zip
* networking/wget.c (parse_url): Allocate a string for the empty path.
* testsuite/wget/wget-handles-empty-path: New.
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 41b4e30af..505c3f2b9 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -533,7 +533,7 @@ void parse_url(char *url, struct host_info *h)
533 *sp++ = '\0'; 533 *sp++ = '\0';
534 h->path = sp; 534 h->path = sp;
535 } else 535 } else
536 h->path = ""; 536 h->path = xstrdup("");
537 537
538 up = strrchr(h->host, '@'); 538 up = strrchr(h->host, '@');
539 if (up != NULL) { 539 if (up != NULL) {
@@ -817,7 +817,7 @@ progressmeter(int flag)
817 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 817 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
818 * SUCH DAMAGE. 818 * SUCH DAMAGE.
819 * 819 *
820 * $Id: wget.c,v 1.46 2001/10/24 04:59:56 andersen Exp $ 820 * $Id: wget.c,v 1.47 2002/03/19 15:22:40 kraai Exp $
821 */ 821 */
822 822
823 823