summaryrefslogtreecommitdiff
path: root/src/sp_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_wrapper.c')
-rw-r--r--src/sp_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_wrapper.c b/src/sp_wrapper.c
index 277f23a..7610114 100644
--- a/src/sp_wrapper.c
+++ b/src/sp_wrapper.c
@@ -1,6 +1,6 @@
1#include "php_snuffleupagus.h" 1#include "php_snuffleupagus.h"
2 2
3static bool wrapper_is_whitelisted(const zend_string *zs) { 3static bool wrapper_is_whitelisted(const zend_string *const zs) {
4 const sp_list_node *list = SNUFFLEUPAGUS_G(config).config_wrapper->whitelist; 4 const sp_list_node *list = SNUFFLEUPAGUS_G(config).config_wrapper->whitelist;
5 5
6 if (!zs) { 6 if (!zs) {
@@ -18,7 +18,7 @@ static bool wrapper_is_whitelisted(const zend_string *zs) {
18 18
19void sp_disable_wrapper() { 19void sp_disable_wrapper() {
20 HashTable *orig = php_stream_get_url_stream_wrappers_hash(); 20 HashTable *orig = php_stream_get_url_stream_wrappers_hash();
21 HashTable *orig_complete = pemalloc(sizeof(*orig_complete), 1); 21 HashTable *orig_complete = pemalloc(sizeof(HashTable), 1);
22 zval *zv; 22 zval *zv;
23 zend_string *zs; 23 zend_string *zs;
24 24