mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
By a happy coincidence, sizeof(sds *) is equal to sizeof(sds) here, while it's logically consistent to use sizeof(sds) instead.
This commit is contained in:
@@ -2533,7 +2533,7 @@ void aclCommand(client *c) {
|
||||
}
|
||||
|
||||
int merged_argc = 0, invalid_idx = 0;
|
||||
sds *temp_argv = zmalloc(c->argc * sizeof(sds *));
|
||||
sds *temp_argv = zmalloc(c->argc * sizeof(sds));
|
||||
for (int i = 3; i < c->argc; i++) temp_argv[i-3] = c->argv[i]->ptr;
|
||||
sds *acl_args = ACLMergeSelectorArguments(temp_argv, c->argc - 3, &merged_argc, &invalid_idx);
|
||||
zfree(temp_argv);
|
||||
|
||||
Reference in New Issue
Block a user