GSimpleProxyResolver: fix for the case where the default proxy is NULL

This commit is contained in:
Dan Winship 2013-02-14 18:06:41 -05:00
parent afc0a72575
commit a44a3cc150

View File

@ -344,6 +344,8 @@ g_simple_proxy_resolver_lookup (GProxyResolver *proxy_resolver,
if (!proxy)
proxy = priv->default_proxy;
if (!proxy)
proxy = "direct://";
if (!strncmp (proxy, "socks://", 8))
{