From 7eae7ea1c988af4f2a1f0de238e1c41847a5c246 Mon Sep 17 00:00:00 2001 From: Daniel P. Berrange Date: Aug 29 2007 00:33:07 +0000 Subject: Fix crash with no transport --- 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();