diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-09 18:08:21 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-09 18:08:21 +0000 |
commit | 3cd7f4295fb1593650bb004734a39748625ead3d (patch) | |
tree | 312ca30f39567d54ca4c667f08ed03b638fd141c /lib/libfetch | |
parent | 648970d8ebf3feb6b4d4d346a3419aeaea05a81d (diff) | |
download | src-test-3cd7f4295fb1593650bb004734a39748625ead3d.tar.gz src-test-3cd7f4295fb1593650bb004734a39748625ead3d.zip |
libfetch: replace 0 with NULL for pointers.
Found with devel/coccinelle.
Reviewed by: des
Notes
Notes:
svn path=/head/; revision=297754
Diffstat (limited to 'lib/libfetch')
-rw-r--r-- | lib/libfetch/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 4e650b93c0abe..dd58c0dbd7be4 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; |