[CRIU] [PATCH] crtools: terminate the case for value 1071 (v2)

Andrey Vagin avagin at openvz.org
Fri Feb 5 14:57:26 PST 2016


From: Andrew Vagin <avagin at virtuozzo.com>

CID 157800 (#1 of 1): Missing break in switch (MISSING_BREAK)
unterminated_case: The case for value 1071 is not terminated by a 'break' statement.

v2: typo fix
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.c b/util.c
index 746596c..7a61cc5 100644
--- a/util.c
+++ b/util.c
@@ -75,7 +75,7 @@ static char *xvstrcat(char *str, const char *fmt, va_list args)
 		if (new) {
 			va_copy(tmp, args);
 			ret = vsnprintf(new + offset, delta, fmt, tmp);
-			va_end(args);
+			va_end(tmp);
 			if (ret >= delta) {
 				/* NOTE: vsnprintf returns the amount of bytes
 				 * to allocate. */
-- 
2.4.3



More information about the CRIU mailing list