* networking/wget.c (parse_url): Allocate a string for the empty path.
* testsuite/wget/wget-handles-empty-path: New.
This commit is contained in:
@ -533,7 +533,7 @@ void parse_url(char *url, struct host_info *h)
|
|||||||
*sp++ = '\0';
|
*sp++ = '\0';
|
||||||
h->path = sp;
|
h->path = sp;
|
||||||
} else
|
} else
|
||||||
h->path = "";
|
h->path = xstrdup("");
|
||||||
|
|
||||||
up = strrchr(h->host, '@');
|
up = strrchr(h->host, '@');
|
||||||
if (up != NULL) {
|
if (up != NULL) {
|
||||||
@ -817,7 +817,7 @@ progressmeter(int flag)
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: wget.c,v 1.46 2001/10/24 04:59:56 andersen Exp $
|
* $Id: wget.c,v 1.47 2002/03/19 15:22:40 kraai Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
1
testsuite/wget/wget-handles-empty-path
Normal file
1
testsuite/wget/wget-handles-empty-path
Normal file
@ -0,0 +1 @@
|
|||||||
|
busybox wget http://www.google.com
|
Reference in New Issue
Block a user