summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/ftp.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2017-01-10 08:08:49 +0000
committerdes <des@FreeBSD.org>2017-01-10 08:08:49 +0000
commit42311e396495d078a430435e0194cfa99e8f5272 (patch)
tree5b23122535e42c117cd420c2ddc55b08e9d31054 /lib/libfetch/ftp.c
parent6cb45500fc5412ac9eadd58d3d873bfbe8af8548 (diff)
downloadFreeBSD-src-42311e396495d078a430435e0194cfa99e8f5272.zip
FreeBSD-src-42311e396495d078a430435e0194cfa99e8f5272.tar.gz
MFH (r267371, r297754, r299520): nits and style
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r--lib/libfetch/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 1a43b56..814c4a3 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -929,7 +929,7 @@ ftp_authenticate(conn_t *conn, struct url *url, struct url *purl)
if (*pwd == '\0')
pwd = getenv("FTP_PASSWORD");
if (pwd == NULL || *pwd == '\0') {
- if ((logname = getlogin()) == 0)
+ if ((logname = getlogin()) == NULL)
logname = FTP_ANONYMOUS_USER;
if ((len = snprintf(pbuf, MAXLOGNAME + 1, "%s@", logname)) < 0)
len = 0;
OpenPOWER on IntegriCloud