"vscode:/vscode.git/clone" did not exist on "21316d57090768fe2d5ff3dd5edcb328137aaaca"
Commit b790e1d7 authored by Paddy Byers's avatar Paddy Byers Committed by antirez
Browse files

Store the length of the static argv when first allocated.

parent a3f3f823
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment