projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87b9573
)
Small tweak cherry-picked from Devin Bayer's monster MacOS X patch.
author
Rob Landley
<rob@landley.net>
Tue, 21 Feb 2006 18:34:54 +0000
(18:34 -0000)
committer
Rob Landley
<rob@landley.net>
Tue, 21 Feb 2006 18:34:54 +0000
(18:34 -0000)
networking/wget.c
patch
|
blob
|
history
diff --git
a/networking/wget.c
b/networking/wget.c
index 6c6a8a7cfee298614c053ac96e99d7356b3f25ca..90ab48f9b5016d6025be195de99e96bdfcf064b8 100644
(file)
--- 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 =