diff options
author | Monsta <[email protected]> | 2014-11-08 14:41:10 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-10 10:38:37 +0100 |
commit | b1b2da32f2166adfdf239f3662ee309827f71e53 (patch) | |
tree | 13e7326274f253207fd5206d20c5d105ad4dd884 /src/caja-connect-server-dialog.c | |
parent | 7aec152ba9f1f6af1706a5c7608bec317b8fbe79 (diff) | |
download | caja-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.c | 2 |
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 : "", |