summaryrefslogtreecommitdiff
path: root/src/caja-connect-server-dialog.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-08 14:41:10 +0300
committerinfirit <[email protected]>2014-12-10 10:38:37 +0100
commitb1b2da32f2166adfdf239f3662ee309827f71e53 (patch)
tree13e7326274f253207fd5206d20c5d105ad4dd884 /src/caja-connect-server-dialog.c
parent7aec152ba9f1f6af1706a5c7608bec317b8fbe79 (diff)
downloadcaja-b1b2da32f2166adfdf239f3662ee309827f71e53.tar.bz2
caja-b1b2da32f2166adfdf239f3662ee309827f71e53.tar.xz
added checks for NULL pointer where it's needed
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 : "",