From e4db7bada226d797c1ea55a845ba17e70e6a6934 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 6 Jan 2011 13:17:40 +0000 Subject: grrr make sure string is !null --- xxxterm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.4.1-2-gfad0