From 70231fe23149a7ec457145aeae2d9ef76bbf59ab Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Sat, 16 Feb 2013 06:13:03 +0100 Subject: [PATCH] bugfix: only compile regex in extract_urls() once --- dunst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dunst.c b/dunst.c index 2aede18..805f905 100644 --- a/dunst.c +++ b/dunst.c @@ -128,6 +128,8 @@ str_array *extract_urls( const char * to_match) if (ret != 0) { printf("failed to compile regex\n"); return NULL; + } else { + is_initialized = true; } }