diff options
Diffstat (limited to 'src/sp_var_parser.c')
| -rw-r--r-- | src/sp_var_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_var_parser.c b/src/sp_var_parser.c index 330fa54..ab36677 100644 --- a/src/sp_var_parser.c +++ b/src/sp_var_parser.c | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | static sp_list_node *parse_str_tokens(const char *str, const sp_conf_token token, | 3 | static sp_list_node *parse_str_tokens(const char *str, |
| 4 | sp_list_node *tokens_list) { | 4 | const sp_conf_token token, |
| 5 | sp_list_node *tokens_list) { | ||
| 5 | const char *cur_str = str; | 6 | const char *cur_str = str; |
| 6 | 7 | ||
| 7 | while ((cur_str = strchr(cur_str, token.text_repr[0]))) { | 8 | while ((cur_str = strchr(cur_str, token.text_repr[0]))) { |
| @@ -31,7 +32,6 @@ static bool is_var_name_valid(const char *name) { | |||
| 31 | regexp_const = sp_pcre_compile(REGEXP_CONST); | 32 | regexp_const = sp_pcre_compile(REGEXP_CONST); |
| 32 | } | 33 | } |
| 33 | if (NULL == regexp_var || NULL == regexp_const) { | 34 | if (NULL == regexp_var || NULL == regexp_const) { |
| 34 | sp_log_err("config", "Could not compile regexp."); | ||
| 35 | return false; | 35 | return false; |
| 36 | } | 36 | } |
| 37 | if ((false == sp_is_regexp_matching(regexp_var, name)) && | 37 | if ((false == sp_is_regexp_matching(regexp_var, name)) && |
