mirror of
https://github.com/fluencelabs/redis
synced 2025-05-02 14:02:14 +00:00
Store the length of the static argv when first allocated.
This commit is contained in:
parent
8fb8a474fd
commit
59ad68ca4f
@ -224,6 +224,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
|
||||
/* Build the arguments vector */
|
||||
if (!argv) {
|
||||
argv = zmalloc(sizeof(robj*)*argc);
|
||||
argv_size = argc;
|
||||
} else if (argv_size < argc) {
|
||||
argv = zrealloc(argv,sizeof(robj*)*argc);
|
||||
argv_size = argc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user