Skip to content
Snippets Groups Projects
Commit eba0ad45 authored by zuul's avatar zuul Committed by Gerrit Code Review
Browse files

Merge "sorcery: Use more compatible regex for local expressions."

parents 84f00072 73bce50e
Branches
Tags
No related merge requests found
......@@ -210,6 +210,10 @@ static void sorcery_config_retrieve_regex(const struct ast_sorcery *sorcery, voi
.regex = &expression,
};
if (ast_strlen_zero(regex)) {
regex = ".";
}
if (!config_objects || regcomp(&expression, regex, REG_EXTENDED | REG_NOSUB)) {
return;
}
......
......@@ -188,6 +188,10 @@ static void sorcery_memory_retrieve_regex(const struct ast_sorcery *sorcery, voi
.regex = &expression,
};
if (ast_strlen_zero(regex)) {
regex = ".";
}
if (regcomp(&expression, regex, REG_EXTENDED | REG_NOSUB)) {
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment