Fix crash with no transport

This commit is contained in:
Daniel P. Berrange 2007-08-28 20:33:07 -04:00
parent d5b7d299fe
commit 7eae7ea1c9

View File

@ -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();