svn commit: trunk/busybox/networking

landley at busybox.net landley at busybox.net
Tue Feb 21 18:34:56 UTC 2006


Author: landley
Date: 2006-02-21 10:34:54 -0800 (Tue, 21 Feb 2006)
New Revision: 14164

Log:
Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.


Modified:
   trunk/busybox/networking/wget.c


Changeset:
Modified: trunk/busybox/networking/wget.c
===================================================================
--- trunk/busybox/networking/wget.c	2006-02-21 15:04:07 UTC (rev 14163)
+++ trunk/busybox/networking/wget.c	2006-02-21 18:34:54 UTC (rev 14164)
@@ -238,7 +238,7 @@
 	if (!fname_out) {
 		// Dirty hack. Needed because bb_get_last_path_component
 		// will destroy trailing / by storing '\0' in last byte!
-		if(target.path[strlen(target.path)-1]!='/') {
+		if(*target.path && target.path[strlen(target.path)-1]!='/') {
 			fname_out =
 #ifdef CONFIG_FEATURE_WGET_STATUSBAR
 				curfile =




More information about the busybox-cvs mailing list