mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 10:50:11 +01:00
cli/polkit: add missing variable initialization in dbus_method_call_cb()
Reported by coverity:
>>> CID 210217: (UNINIT)
>>> Using uninitialized value "identities_gvariant" when calling
"gs_local_variant_unref".
Fixes: df1d214b2e ('clients: polkit-agent: implement polkit agent without using libpolkit')
This commit is contained in:
parent
20f5d8877b
commit
fbccd24db6
1 changed files with 1 additions and 1 deletions
|
|
@ -663,7 +663,7 @@ dbus_method_call_cb (GDBusConnection *connection,
|
|||
const char *message;
|
||||
const char *cookie;
|
||||
AuthRequest *request;
|
||||
gs_unref_variant GVariant *identities_gvariant;
|
||||
gs_unref_variant GVariant *identities_gvariant = NULL;
|
||||
|
||||
if (nm_streq (method_name, "BeginAuthentication")) {
|
||||
g_variant_get (parameters,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue