shared: add missing va_end() to _nm_dbus_error_is()

Found by covscan:

   NetworkManager-1.22.0/shared/nm-glib-aux/nm-dbus-aux.c:361:
   missing_va_end: va_end was not called for "ap".

Fixes: ce36494c0a ('shared: add nm_dbus_error_is() helper')
(cherry picked from commit 0de4fd6ebc)
This commit is contained in:
Beniamino Galvani 2019-12-17 15:04:11 +01:00
parent ea22135384
commit 9e5bb9d62f

View file

@ -357,8 +357,10 @@ _nm_dbus_error_is (GError *error, ...)
va_start (ap, error);
while ((name = va_arg (ap, const char *))) {
if (nm_streq (dbus_error, name))
if (nm_streq (dbus_error, name)) {
va_end (ap);
return TRUE;
}
}
va_end (ap);