summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/file.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-01-07 10:59:12 +0000
committerdes <des@FreeBSD.org>2000-01-07 10:59:12 +0000
commit1e930b38f85120ad766f987dbbe256d25f9f5fc2 (patch)
treef796672a55f7c9e6ba03a7cb4902b9ebcb02e504 /lib/libfetch/file.c
parent5a9ffb7f5aae940fea91a0088b42469832041093 (diff)
downloadFreeBSD-src-1e930b38f85120ad766f987dbbe256d25f9f5fc2.zip
FreeBSD-src-1e930b38f85120ad766f987dbbe256d25f9f5fc2.tar.gz
Patches I've had lying around for several months:
* Add the 'h' ftp flag (allocate local port in high range) * Add the 'd' flag (use direct connection even if proxy is defined) * Make sure flags != NULL before calling strchr(). * Minor changes to some comments.
Diffstat (limited to 'lib/libfetch/file.c')
-rw-r--r--lib/libfetch/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c
index 5b594c4..d00f2d6 100644
--- a/lib/libfetch/file.c
+++ b/lib/libfetch/file.c
@@ -55,7 +55,7 @@ fetchPutFile(struct url *u, char *flags)
{
FILE *f;
- if (strchr(flags, 'a'))
+ if (flags && strchr(flags, 'a'))
f = fopen(u->doc, "a");
else
f = fopen(u->doc, "w");
OpenPOWER on IntegriCloud