another small comment fix

This commit is contained in:
Dvir Volk 2016-04-28 13:12:09 +03:00 committed by antirez
parent 87de31f968
commit a00e872560

View File

@ -2044,7 +2044,7 @@ robj **moduleCreateArgvFromUserFormat(const char *cmdname, const char *fmt, int
long ll = va_arg(ap,long long);
argv[argc++] = createStringObjectFromLongLong(ll);
} else if (*p == 'v') {
/* a vector of strings */
/* A vector of strings */
robj **v = va_arg(ap, void*);
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 */
argv_size += vlen-1;
argv = zrealloc(argv,sizeof(robj*)*argv_size);
size_t i = 0;
for (i = 0; i < vlen; i++) {
incrRefCount(v[i]);