mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 11:08:03 +02:00
libnm-glib: initialize GError, else invalid free() crash can occur (rh #809123)
This commit is contained in:
parent
75de2034c8
commit
8bb2789444
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ static void
|
|||
_nm_remote_settings_ensure_inited (NMRemoteSettings *self)
|
||||
{
|
||||
NMRemoteSettingsPrivate *priv = NM_REMOTE_SETTINGS_GET_PRIVATE (self);
|
||||
GError *error;
|
||||
GError *error = NULL;
|
||||
|
||||
if (!priv->inited) {
|
||||
if (!g_initable_init (G_INITABLE (self), NULL, &error)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue