about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-01-06 13:17:40 +0000
committerMarco Peereboom <marco@conformal.com>2011-01-06 13:17:40 +0000
commite4db7bada226d797c1ea55a845ba17e70e6a6934 (patch)
tree80ba623ac82384c0d0723e57403ccf4a6d70f69c
parent95174c4d6504e5e3f2ddf749d3516f08f172f4dd (diff)
downloadxombrero-e4db7bada226d797c1ea55a845ba17e70e6a6934.tar.gz
grrr make sure string is !null
-rw-r--r--xxxterm.c2
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);