From 9fda18663f31e67d8c1c50e1c5a1888abceda2a6 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 15 Aug 2010 18:36:25 -0300 Subject: Fix potential problems found by clang static analyzer. --- remote/ssh-conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'remote/ssh-conn.c') diff --git a/remote/ssh-conn.c b/remote/ssh-conn.c index 7f099d35..af8a6fab 100644 --- a/remote/ssh-conn.c +++ b/remote/ssh-conn.c @@ -149,7 +149,7 @@ SSHConnResponse ssh_new(SoupURI * uri, char **argv, *askpass_path = NULL; GString *cmd_line; SSHConnResponse response; - SSHConn *connection; + SSHConn *connection = NULL; gchar buffer[512]; if (!conn_return) { @@ -282,7 +282,7 @@ SSHConnResponse ssh_new(SoupURI * uri, } if (response != SSH_CONN_OK) { - if (connection->uri) { + if (connection && connection->uri) { soup_uri_free(connection->uri); } -- cgit v1.2.3