[gvfs] [FTP] use an empty username if none was given



commit dd02f8de178ce85d09b3fc1ed31626fb19dfcb44
Author: Benjamin Otte <otte gnome org>
Date:   Fri Jun 5 20:39:25 2009 +0200

    [FTP] use an empty username if none was given
    
    fixes an assertion
---
 daemon/gvfsbackendftp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index c2bf785..b27a575 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -391,7 +391,7 @@ try_login:
         {
           ftp->user = username ? g_strdup (username) : g_strdup ("");
           ftp->password = g_strdup (password);
-          if (g_vfs_ftp_task_login (&task, username, password) != 0)
+          if (g_vfs_ftp_task_login (&task, ftp->user, ftp->password) != 0)
             break;
         }
       g_free (username);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]