[glib] GSimpleProxyResolver: fix for the case where the default proxy is NULL



commit a44a3cc15091a2f6ba13bfede5dbdfc4215715cb
Author: Dan Winship <danw gnome org>
Date:   Thu Feb 14 18:06:41 2013 -0500

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

 gio/gsimpleproxyresolver.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsimpleproxyresolver.c b/gio/gsimpleproxyresolver.c
index c6ac9b4..7691b6f 100644
--- a/gio/gsimpleproxyresolver.c
+++ b/gio/gsimpleproxyresolver.c
@@ -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))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]