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

Andrew Vagin avagin at virtuozzo.com
Fri Feb 5 15:03:35 PST 2016


On Sat, Feb 06, 2016 at 01:57:26AM +0300, Andrey Vagin wrote:
> 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.

Pls, ignore. Here is a wrong comment.
> 
> 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