[gvfs/ftp-reorg: 13/15] [FTP] use an empty username if none was given
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gvfs/ftp-reorg: 13/15] [FTP] use an empty username if none was given
- Date: Mon, 8 Jun 2009 15:23:14 -0400 (EDT)
commit 5ae494830e9b1d059994628f296ac0c10c024a3a
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]