summaryrefslogtreecommitdiff
path: root/src/sp_var_parser.c
diff options
context:
space:
mode:
authorjvoisin2018-02-05 18:13:57 +0100
committerjvoisin2018-02-05 18:13:57 +0100
commit9d153cc185b4e2327a4aabe645cf1fabd3b4f21b (patch)
treebfaf6ff5fa41098864d6b51ad1fa91304d8c32a6 /src/sp_var_parser.c
parent3ab41db5bb38ec534e96f89680e55becd758aa28 (diff)
Massive simplification of functions hooking
Diffstat (limited to 'src/sp_var_parser.c')
-rw-r--r--src/sp_var_parser.c6
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
3static sp_list_node *parse_str_tokens(const char *str, const sp_conf_token token, 3static 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)) &&