Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb6a297

Browse files
CodeQL fixes
1 parent d67b202 commit fb6a297

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

redis_commands.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3412,9 +3412,9 @@ static int get_georadius_count_options(zval *optval, geoOptions *opts) {
34123412

34133413
/* Helper function to extract optional arguments for GEORADIUS and GEORADIUSBYMEMBER */
34143414
static int get_georadius_opts(HashTable *ht, geoOptions *opts) {
3415-
char *optstr;
34163415
zend_string *zkey;
3417-
zval *optval, *z_tmp;
3416+
char *optstr;
3417+
zval *optval;
34183418

34193419
/* Iterate over our argument array, collating which ones we have */
34203420
ZEND_HASH_FOREACH_STR_KEY_VAL(ht, zkey, optval) {
@@ -3664,7 +3664,7 @@ redis_geosearch_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
36643664
size_t keylen, unitlen;
36653665
geoOptions gopts = {0};
36663666
smart_string cmdstr = {0};
3667-
zval *position, *shape, *opts = NULL, *z_ele, *z_tmp;
3667+
zval *position, *shape, *opts = NULL, *z_ele;
36683668
zend_string *zkey, *zstr;
36693669

36703670
if (zend_parse_parameters(ZEND_NUM_ARGS(), "szzs|a",

0 commit comments

Comments
 (0)