summaryrefslogtreecommitdiff
path: root/src/sp_pcre_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_pcre_compat.h')
-rw-r--r--src/sp_pcre_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_pcre_compat.h b/src/sp_pcre_compat.h
index 6e9d91a..5770df0 100644
--- a/src/sp_pcre_compat.h
+++ b/src/sp_pcre_compat.h
@@ -35,7 +35,7 @@ typedef struct {
35static inline sp_regexp* sp_regexp_compile(zend_string *zstr) { 35static inline sp_regexp* sp_regexp_compile(zend_string *zstr) {
36 sp_pcre *re = sp_pcre_compile(ZSTR_VAL(zstr)); 36 sp_pcre *re = sp_pcre_compile(ZSTR_VAL(zstr));
37 if (!re) { return NULL; } 37 if (!re) { return NULL; }
38 sp_regexp *ret = pecalloc(sizeof(sp_regexp), 1, 1); 38 sp_regexp *ret = pecalloc(1, sizeof(sp_regexp), 1);
39 ret->re = re; 39 ret->re = re;
40 ret->pattern = zstr; 40 ret->pattern = zstr;
41 return ret; 41 return ret;