From eb9b1407c89365b9d07179515650dc903af9e1bb Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 14 Oct 2017 08:30:23 +0300 Subject: [PATCH] (ftpfs_correct_url_parameters): clean up always true condition. Signed-off-by: Andrew Borodin --- src/vfs/ftpfs/ftpfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vfs/ftpfs/ftpfs.c b/src/vfs/ftpfs/ftpfs.c index fbea81ffb..a6ebc05b9 100644 --- a/src/vfs/ftpfs/ftpfs.c +++ b/src/vfs/ftpfs/ftpfs.c @@ -368,7 +368,7 @@ ftpfs_correct_url_parameters (const vfs_path_element_t * velement) path_element->user = g_strdup ("anonymous"); /* Look up password in netrc for known user */ - if (ftpfs_use_netrc && path_element->user != NULL && path_element->password == NULL) + if (ftpfs_use_netrc && path_element->password == NULL) { char *new_user = NULL; char *new_passwd = NULL;