summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorRob Landley2006-02-21 18:34:54 +0000
committerRob Landley2006-02-21 18:34:54 +0000
commit6f2a0b22754f1ad85204018491b8ad356a546f0e (patch)
tree4872a543d111c10ff985059b6db6113f3fbb08f6 /networking
parent87b9573ff8abcc94c3ba038815ae0c14182492ec (diff)
downloadbusybox-6f2a0b22754f1ad85204018491b8ad356a546f0e.zip
busybox-6f2a0b22754f1ad85204018491b8ad356a546f0e.tar.gz
Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 6c6a8a7..90ab48f 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -238,7 +238,7 @@ int wget_main(int argc, char **argv)
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 =