bugfix: only compile regex in extract_urls() once

This commit is contained in:
Sascha Kruse 2013-02-16 06:13:03 +01:00
parent 2c84ecabdd
commit 70231fe231

View File

@ -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;
}
}