antirez/redis — pull request #2119 by sunheehnus (2014-11-02 02:52:55+00:00)
Title: sds.c/sdscatvprintf: va_end needs to be fixed

A protential bug.

Test with Ubuntu 12.04
void hello(const char *fmt, ...)
{
va_list ap;
printf("0x%08x\n",*ap);
va_start(ap, fmt);
printf("0x%08x\n",*ap);
va_end(ap);
printf("0x%08x\n",*ap);
}
va_end do nothing to ap

but, should this be a protential bug with other platforms?