mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-19 08:58:28 +02:00
cli/polkit: add missing variable initialization in retrieve_session_id_cb()
Reported by coverity:
>>> CID 210213 Uninitialized pointer read (UNINIT)
>>> Using uninitialized value iter when calling
_nm_auto_free_variant_iter
Fixes: df1d214b2e ('clients: polkit-agent: implement polkit agent without using libpolkit')
This commit is contained in:
parent
fbccd24db6
commit
8cb58ef1eb
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ retrieve_session_id_cb (GObject *source_object,
|
|||
NMPolkitListener *listener = NM_POLKIT_LISTENER (user_data);
|
||||
char *session_id;
|
||||
guint32 session_uid;
|
||||
nm_auto_free_variant_iter GVariantIter *iter;
|
||||
nm_auto_free_variant_iter GVariantIter *iter = NULL;
|
||||
gs_unref_variant GVariant *ret = NULL;
|
||||
gs_free_error GError *error = NULL;
|
||||
gs_free char *err_str = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue