mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 01:20:07 +01:00
config: call va_end() in unexpected code path too
CID 99747 (#1 of 1): Missing varargs init or cleanup (VARARGS) 13. missing_va_end: va_end was not called for ap.
This commit is contained in:
parent
a06487a6ae
commit
dc9bba9e51
1 changed files with 5 additions and 7 deletions
|
|
@ -1837,20 +1837,18 @@ _nm_config_state_set (NMConfig *self,
|
|||
switch (property_type) {
|
||||
case NM_CONFIG_STATE_PROPERTY_NETWORKING_ENABLED:
|
||||
p_bool = &priv->state->p.net_enabled;
|
||||
goto handle_p_bool;
|
||||
break;
|
||||
case NM_CONFIG_STATE_PROPERTY_WIFI_ENABLED:
|
||||
p_bool = &priv->state->p.wifi_enabled;
|
||||
goto handle_p_bool;
|
||||
break;
|
||||
case NM_CONFIG_STATE_PROPERTY_WWAN_ENABLED:
|
||||
p_bool = &priv->state->p.wwan_enabled;
|
||||
goto handle_p_bool;
|
||||
default:
|
||||
break;
|
||||
default:
|
||||
va_end (ap);
|
||||
g_return_if_reached ();
|
||||
}
|
||||
|
||||
g_return_if_reached ();
|
||||
|
||||
handle_p_bool:
|
||||
v_bool = va_arg (ap, gboolean);
|
||||
if (*p_bool == v_bool)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue