mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 12:21:37 +01:00
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 commit0de4fd6ebc)
This commit is contained in:
parent
ea22135384
commit
9e5bb9d62f
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue