| 1 |
tetromino |
1.1 |
From 8bb278944496102a4afad46b53e1e8279425aaac Mon Sep 17 00:00:00 2001 |
| 2 |
|
|
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= <jklimes@redhat.com> |
| 3 |
|
|
Date: Mon, 2 Apr 2012 16:37:55 +0200 |
| 4 |
|
|
Subject: [PATCH] libnm-glib: initialize GError, else invalid free() crash can |
| 5 |
|
|
occur (rh #809123) |
| 6 |
|
|
|
| 7 |
|
|
--- |
| 8 |
|
|
libnm-glib/nm-remote-settings.c | 2 +- |
| 9 |
|
|
1 files changed, 1 insertions(+), 1 deletions(-) |
| 10 |
|
|
|
| 11 |
|
|
diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c |
| 12 |
|
|
index 9a81a8d..68aaeb4 100644 |
| 13 |
|
|
--- a/libnm-glib/nm-remote-settings.c |
| 14 |
|
|
+++ b/libnm-glib/nm-remote-settings.c |
| 15 |
|
|
@@ -109,7 +109,7 @@ static void |
| 16 |
|
|
_nm_remote_settings_ensure_inited (NMRemoteSettings *self) |
| 17 |
|
|
{ |
| 18 |
|
|
NMRemoteSettingsPrivate *priv = NM_REMOTE_SETTINGS_GET_PRIVATE (self); |
| 19 |
|
|
- GError *error; |
| 20 |
|
|
+ GError *error = NULL; |
| 21 |
|
|
|
| 22 |
|
|
if (!priv->inited) { |
| 23 |
|
|
if (!g_initable_init (G_INITABLE (self), NULL, &error)) { |
| 24 |
|
|
-- |
| 25 |
|
|
1.7.8.5 |