mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Trailing spaces removed from moduleCreateArgvFromUserFormat().
This commit is contained in:
parent
6250a6b11f
commit
ef2b4f6496
@ -2063,14 +2063,14 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
|
||||
/* A vector of strings */
|
||||
robj **v = va_arg(ap, void*);
|
||||
size_t vlen = va_arg(ap, size_t);
|
||||
|
||||
/* We need to grow argv to hold the vector's 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);
|
||||
|
||||
size_t i = 0;
|
||||
size_t i = 0;
|
||||
for (i = 0; i < vlen; i++) {
|
||||
incrRefCount(v[i]);
|
||||
argv[argc++] = v[i];
|
||||
|
Loading…
Reference in New Issue
Block a user