Skip to content

Commit

Permalink
Small optimization to redisxRunScriptAsync()
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 5, 2024
1 parent 206248c commit 1bb7c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redisx-script.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ int redisxRunScriptAsync(RedisClient *cl, const char *sha1, const char **keys, c

nargs = 3 + nkeys + nparams;
sprintf(sn, "%d", nkeys);
args = (char **) calloc(nargs, sizeof(char *));
args = (char **) malloc(nargs * sizeof(char *));

args[i++] = "EVALSHA";
args[i++] = (char *) sha1;
Expand Down

0 comments on commit 1bb7c69

Please sign in to comment.