summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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