summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorRichardHitt <rbh00@netcom.com>2013-02-13 15:05:11 -0800
committerRichardHitt <rbh00@netcom.com>2013-02-13 15:05:11 -0800
commit3b23642e2cdce51569fe576e9b1b554c58de8449 (patch)
treeb76fa0eb0830b848a268cc882b8daef16419ce89 /src
parentef18734f2042ce8bfd11cc508bc803de555e495a (diff)
parent8e3d0391995f9e935efb6049d8d0bcfedf184a54 (diff)
Merge pull request #407 from RichardHitt/master
Fix bug in url.c at re_host().
Diffstat (limited to 'src')
-rw-r--r--src/common/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/url.c b/src/common/url.c
index dad23b67..6bd7d9ff 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -371,6 +371,9 @@ re_host (void)
 {
 	static GRegex *host_ret;
 	char *grist;
+
+	if (host_ret) return host_ret;
+
 	grist = g_strdup_printf (
 		"("	/* HOST */
 			HOST OPT_PORT