Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2022-09-15 19:37:48 +0300
committermichael-grunder <michael.grunder@gmail.com>2022-09-15 19:37:48 +0300
commitfb6a297ccc4270f8235d8f689660de573e26c4cb (patch)
treed6a8351f439d9e3e7a841f6b087c09bc5eac2741 /redis_commands.c
parentd67b2020e59429cf4dbd89c71a440a92dddfec5c (diff)
CodeQL fixes
Diffstat (limited to 'redis_commands.c')
-rw-r--r--redis_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis_commands.c b/redis_commands.c
index 116a6323..b6da414f 100644
--- a/redis_commands.c
+++ b/redis_commands.c
@@ -3412,9 +3412,9 @@ error:
/* Helper function to extract optional arguments for GEORADIUS and GEORADIUSBYMEMBER */
static int get_georadius_opts(HashTable *ht, geoOptions *opts) {
- char *optstr;
zend_string *zkey;
- zval *optval, *z_tmp;
+ char *optstr;
+ zval *optval;
/* Iterate over our argument array, collating which ones we have */
ZEND_HASH_FOREACH_STR_KEY_VAL(ht, zkey, optval) {
@@ -3664,7 +3664,7 @@ redis_geosearch_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
size_t keylen, unitlen;
geoOptions gopts = {0};
smart_string cmdstr = {0};
- zval *position, *shape, *opts = NULL, *z_ele, *z_tmp;
+ zval *position, *shape, *opts = NULL, *z_ele;
zend_string *zkey, *zstr;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "szzs|a",