Commit f2fea295 authored by Daniel Black's avatar Daniel Black

ucs2: cppcheck - add va_end

parent b22285e4
......@@ -1160,9 +1160,12 @@ static size_t
my_snprintf_mb2(CHARSET_INFO *cs __attribute__((unused)),
char* to, size_t n, const char* fmt, ...)
{
size_t ret;
va_list args;
va_start(args,fmt);
return my_vsnprintf_mb2(to, n, fmt, args);
ret= my_vsnprintf_mb2(to, n, fmt, args);
va_end(args);
return ret;
}
......@@ -2424,9 +2427,12 @@ static size_t
my_snprintf_utf32(CHARSET_INFO *cs __attribute__((unused)),
char* to, size_t n, const char* fmt, ...)
{
size_t ret;
va_list args;
va_start(args,fmt);
return my_vsnprintf_utf32(to, n, fmt, args);
ret= my_vsnprintf_utf32(to, n, fmt, args);
va_end(args);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment