selftests/net: Add missing va_end.

There is no va_end after va_copy, just add it.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240927040050.7851-1-zhangjiao2@cmss.chinamobile.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
zhang jiao 2024-09-27 12:00:50 +08:00 committed by Paolo Abeni
parent 6b67e098c9
commit 7c2f1c2690

View File

@ -46,6 +46,7 @@ static inline char *test_snprintf(const char *fmt, va_list vargs)
va_copy(tmp, vargs);
n = vsnprintf(ret, size, fmt, tmp);
va_end(tmp);
if (n < 0)
return NULL;