staging: unisys: uislib: uisutils.c: Fix a missing va_end
A missing va_end in connection with vsnprintf Was found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
e5f4a331c9
Коммит
66875c5d64
|
@ -56,6 +56,7 @@ uisutil_add_proc_line_ex(int *total, char **buffer, int *buffer_remaining,
|
|||
DBGINF("buffer = 0x%p : *buffer = 0x%p.\n", buffer, *buffer);
|
||||
va_start(args, format);
|
||||
len = vsnprintf(*buffer, *buffer_remaining, format, args);
|
||||
va_end(args);
|
||||
if (len >= *buffer_remaining) {
|
||||
*buffer += *buffer_remaining;
|
||||
*total += *buffer_remaining;
|
||||
|
|
Загрузка…
Ссылка в новой задаче