Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
59ad68ca
Commit
59ad68ca
authored
Aug 15, 2014
by
Paddy Byers
Committed by
antirez
Sep 01, 2014
Browse files
Store the length of the static argv when first allocated.
parent
8fb8a474
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
59ad68ca
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment