From 6b05f1c07e2d43c6c60fe950e3b62897ce133976 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 1 Jan 2011 21:51:32 -0800 Subject: [PATCH] gweb: Add extra debug for proxy setup --- gweb/gweb.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index 2f46445..9d746c8 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -255,7 +255,14 @@ gboolean g_web_set_proxy(GWeb *web, const char *proxy) return FALSE; g_free(web->proxy); - web->proxy = g_strdup(proxy); + + if (proxy == NULL) { + web->proxy = NULL; + debug(web, "clearing proxy"); + } else { + web->proxy = g_strdup(proxy); + debug(web, "setting proxy %s", web->proxy); + } return TRUE; } -- 2.7.4