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-29 22:31:46 +0300
committermichael-grunder <michael.grunder@gmail.com>2022-09-29 22:31:46 +0300
commit06e8b695700481142b55df0a5bdd858949126419 (patch)
treeb53841c5ee3d2528f8410ae406497a19efc2d4c1
parentca14618249dab2f1ebe16596d374592ebc829fe1 (diff)
Fix codeql false positive.lcs
-rw-r--r--redis_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/redis_commands.c b/redis_commands.c
index 5e3d80ec..4818a32a 100644
--- a/redis_commands.c
+++ b/redis_commands.c
@@ -2273,15 +2273,15 @@ void redis_get_lcs_options(redisLcsOptions *dst, HashTable *ht) {
int redis_lcs_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
char **cmd, int *cmd_len, short *slot, void **ctx)
{
- zend_string *key1, *key2;
+ zend_string *key1 = NULL, *key2 = NULL;
smart_string cmdstr = {0};
HashTable *ht = NULL;
redisLcsOptions opt;
int argc;
ZEND_PARSE_PARAMETERS_START(2, 3)
- Z_PARAM_STR(key1);
- Z_PARAM_STR(key2);
+ Z_PARAM_STR(key1)
+ Z_PARAM_STR(key2)
Z_PARAM_OPTIONAL
Z_PARAM_ARRAY_HT_OR_NULL(ht)
ZEND_PARSE_PARAMETERS_END_EX(return FAILURE);