From d875912a0528931c0828edfe30c37c01b559b761 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 13 Oct 2017 16:14:00 +0200 Subject: Maybe this will address #35 - We shouldn't assume that people are only using regexps - Make an internal function a bit more obvious --- src/sp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp_utils.c') 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) { bool sp_match_value(const char* value, const char* to_match, const pcre* rx) { if (to_match) { - if (0 == strcmp(value, to_match)) { + if (0 == strcmp(to_match, value)) { return true; } } else if (rx) { -- cgit v1.3