diff options
-rw-r--r-- | xxxterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c index bcf05f0..c5f40c9 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -2084,7 +2084,7 @@ connect_socket_from_uri(char *uri, char *domain, size_t domain_sz) int s = -1, on; char port[8]; - if (!g_str_has_prefix(uri, "https://")) + if (uri && !g_str_has_prefix(uri, "https://")) goto done; su = soup_uri_new(uri); |