* [staging PATCH] Add missing va_end() call
@ 2014-12-13 0:32 Thomas Jarosch
0 siblings, 0 replies; only message in thread
From: Thomas Jarosch @ 2014-12-13 0:32 UTC (permalink / raw)
To: sparmaintainer; +Cc: linux-kernel
Reported by cppcheck
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
---
drivers/staging/unisys/uislib/uisutils.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging/unisys/uislib/uisutils.c b/drivers/staging/unisys/uislib/uisutils.c
index 8ff6d26..d821c82 100644
--- a/drivers/staging/unisys/uislib/uisutils.c
+++ b/drivers/staging/unisys/uislib/uisutils.c
@@ -59,6 +59,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;
--
1.9.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-13 0:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-13 0:32 [staging PATCH] Add missing va_end() call Thomas Jarosch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.