[CRIU] [PATCH 6/7] test: add missing va_end
    Dmitry Safonov 
    0x7f454c46 at gmail.com
       
    Mon Apr 29 17:55:15 MSK 2019
    
    
  
On Sun, 28 Apr 2019 at 19:45, Rikard Falkeborn
<rikard.falkeborn at gmail.com> wrote:
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46 at gmail.com>
> ---
>  test/zdtm/static/autofs.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/test/zdtm/static/autofs.c b/test/zdtm/static/autofs.c
> index c2e04771..f74bc35a 100644
> --- a/test/zdtm/static/autofs.c
> +++ b/test/zdtm/static/autofs.c
> @@ -49,6 +49,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(tmp);
>                         if (ret >= delta) {
>                                 /* NOTE: vsnprintf returns the amount of bytes
>                                  *                                  * to allocate. */
> --
> 2.21.0
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
-- 
             Dmitry
    
    
More information about the CRIU
mailing list