summaryrefslogtreecommitdiff
path: root/src/sp_utils.c
diff options
context:
space:
mode:
authorjvoisin2017-10-13 16:14:00 +0200
committerjvoisin2017-10-13 16:14:00 +0200
commitd875912a0528931c0828edfe30c37c01b559b761 (patch)
tree005e7971980b26f4608cf4201b7ec9ddc1ecd498 /src/sp_utils.c
parenta081d0ddea4103c1772378870a005267a7bce332 (diff)
Maybe this will address #35
- We shouldn't assume that people are only using regexps - Make an internal function a bit more obvious
Diffstat (limited to 'src/sp_utils.c')
-rw-r--r--src/sp_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c
index faf2e9a..8731164 100644
--- a/src/sp_utils.c
+++ b/src/sp_utils.c
@@ -235,7 +235,7 @@ char* sp_convert_to_string(zval* zv) {
235 235
236bool sp_match_value(const char* value, const char* to_match, const pcre* rx) { 236bool sp_match_value(const char* value, const char* to_match, const pcre* rx) {
237 if (to_match) { 237 if (to_match) {
238 if (0 == strcmp(value, to_match)) { 238 if (0 == strcmp(to_match, value)) {
239 return true; 239 return true;
240 } 240 }
241 } else if (rx) { 241 } else if (rx) {