summaryrefslogtreecommitdiff
path: root/src/caja-connect-server-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-connect-server-dialog.c')
-rw-r--r--src/caja-connect-server-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caja-connect-server-dialog.c b/src/caja-connect-server-dialog.c
index 90a8c977..921b2597 100644
--- a/src/caja-connect-server-dialog.c
+++ b/src/caja-connect-server-dialog.c
@@ -602,7 +602,7 @@ connect_dialog_connect_to_server (CajaConnectServerDialog *dialog)
uri = g_strdup_printf ("%s://%s%s%s%s%s%s",
meth->scheme,
(user != NULL) ? user : "",
- (user[0] != 0) ? "@" : "",
+ (user != NULL && user[0] != 0) ? "@" : "",
server,
(port_str != NULL) ? ":" : "",
(port_str != NULL) ? port_str : "",