mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
libfetch: replace 0 with NULL for pointers.
Found with devel/coccinelle. Reviewed by: des
This commit is contained in:
parent
648970d8eb
commit
3cd7f4295f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297754
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue