diff options
| author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-21 18:34:54 +0000 |
|---|---|---|
| committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-21 18:34:54 +0000 |
| commit | 42ad3e4912abbd0d5ef2f6fdb52cf41fc009c86b (patch) | |
| tree | 4872a543d111c10ff985059b6db6113f3fbb08f6 | |
| parent | b1c32964002643f65592c7ab03718bdf0a016c89 (diff) | |
| download | busybox-w32-42ad3e4912abbd0d5ef2f6fdb52cf41fc009c86b.tar.gz busybox-w32-42ad3e4912abbd0d5ef2f6fdb52cf41fc009c86b.tar.bz2 busybox-w32-42ad3e4912abbd0d5ef2f6fdb52cf41fc009c86b.zip | |
Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.
git-svn-id: svn://busybox.net/trunk/busybox@14164 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -rw-r--r-- | networking/wget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c index 6c6a8a7cf..90ab48f9b 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
| @@ -238,7 +238,7 @@ int wget_main(int argc, char **argv) | |||
| 238 | if (!fname_out) { | 238 | if (!fname_out) { |
| 239 | // Dirty hack. Needed because bb_get_last_path_component | 239 | // Dirty hack. Needed because bb_get_last_path_component |
| 240 | // will destroy trailing / by storing '\0' in last byte! | 240 | // will destroy trailing / by storing '\0' in last byte! |
| 241 | if(target.path[strlen(target.path)-1]!='/') { | 241 | if(*target.path && target.path[strlen(target.path)-1]!='/') { |
| 242 | fname_out = | 242 | fname_out = |
| 243 | #ifdef CONFIG_FEATURE_WGET_STATUSBAR | 243 | #ifdef CONFIG_FEATURE_WGET_STATUSBAR |
| 244 | curfile = | 244 | curfile = |
