libnm: fix uninitialized GError in NMClient's _init_start_cancel_on_idle_cb()

Found with `git grep 'GError.*[^,)];'| grep ' *= *NULL;' -v`

Fixes: ce0e898fb4 ('libnm: refactor caching of D-Bus objects in NMClient')
This commit is contained in:
Thomas Haller 2022-03-09 23:00:21 +01:00
parent 43748d2980
commit a9d521bf8c
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -7327,8 +7327,8 @@ _init_start_cancelled_cb(GCancellable *cancellable, gpointer user_data)
static gboolean
_init_start_cancel_on_idle_cb(gpointer user_data)
{
NMClient *self = user_data;
GError *error;
NMClient *self = user_data;
GError *error = NULL;
nm_utils_error_set_cancelled(&error, FALSE, NULL);
_init_start_complete(self, error);