summaryrefslogtreecommitdiff
path: root/extra/networkmanager/initialize-GError.patch
blob: 58f0b9cb32c75db9f9a05c7460c1445715cfc368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 8bb278944496102a4afad46b53e1e8279425aaac Mon Sep 17 00:00:00 2001
From: Jiří Klimeš <jklimes@redhat.com>
Date: Mon, 02 Apr 2012 14:37:55 +0000
Subject: libnm-glib: initialize GError, else invalid free() crash can occur (rh #809123)

---
(limited to 'libnm-glib/nm-remote-settings.c')

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)) {
--
cgit v0.9.0.2-2-gbebe