From 8bb278944496102a4afad46b53e1e8279425aaac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 2 Apr 2012 16:37:55 +0200 Subject: [PATCH] libnm-glib: initialize GError, else invalid free() crash can occur (rh #809123) --- libnm-glib/nm-remote-settings.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c index 9a81a8d..68aaeb4 100644 --- a/libnm-glib/nm-remote-settings.c +++ b/libnm-glib/nm-remote-settings.c @@ -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)) { -- 1.7.8.5