mirror of
https://github.com/fluencelabs/redis
synced 2025-04-04 00:31:03 +00:00
another small comment fix
This commit is contained in:
parent
87de31f968
commit
a00e872560
@ -2044,7 +2044,7 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
|
|||||||
long ll = va_arg(ap,long long);
|
long ll = va_arg(ap,long long);
|
||||||
argv[argc++] = createStringObjectFromLongLong(ll);
|
argv[argc++] = createStringObjectFromLongLong(ll);
|
||||||
} else if (*p == 'v') {
|
} else if (*p == 'v') {
|
||||||
/* a vector of strings */
|
/* A vector of strings */
|
||||||
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);
|
||||||
|
|
||||||
@ -2053,6 +2053,7 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
|
|||||||
* one element in argv for the vector already */
|
* 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;
|
||||||
for (i = 0; i < vlen; i++) {
|
for (i = 0; i < vlen; i++) {
|
||||||
incrRefCount(v[i]);
|
incrRefCount(v[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user