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
87de31f9
Commit
87de31f9
authored
Apr 28, 2016
by
Dvir Volk
Committed by
antirez
May 10, 2016
Browse files
fixed comment
parent
8fc67080
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
87de31f9
...
@@ -2048,7 +2048,9 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
...
@@ -2048,7 +2048,9 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
robj
**
v
=
va_arg
(
ap
,
void
*
);
robj
**
v
=
va_arg
(
ap
,
void
*
);
size_t
vlen
=
va_arg
(
ap
,
size_t
);
size_t
vlen
=
va_arg
(
ap
,
size_t
);
/* We need to grow argv by N-1 elements */
/* We need to grow argv to hold the vector's elements.
* We resize by vector_len-1 elements, because we held
* one element in argv for the vector already */
argv_size
+=
vlen
-
1
;
argv_size
+=
vlen
-
1
;
argv
=
zrealloc
(
argv
,
sizeof
(
robj
*
)
*
argv_size
);
argv
=
zrealloc
(
argv
,
sizeof
(
robj
*
)
*
argv_size
);
size_t
i
=
0
;
size_t
i
=
0
;
...
...
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