From 7eae7ea1c988af4f2a1f0de238e1c41847a5c246 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 28 Aug 2007 20:33:07 -0400 Subject: Fix crash with no transport --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index ff36bc0..5309d3b 100644 --- a/src/main.c +++ b/src/main.c @@ -781,7 +781,7 @@ int main(int argc, char **argv) } DEBUG_LOG("Remote host is %s and transport %s user %s\n", host, transport ? transport : "", user ? user : ""); - if (strcasecmp(transport, "ssh") == 0 && !direct) + if (transport && strcasecmp(transport, "ssh") == 0 && !direct) fd = viewer_open_tunnel_ssh(host, port, user, vncport); vnc = vnc_display_new(); -- cgit