blob: 680b1a159b4af856e2ee35537a3a45aa46f04f4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
From: Romain Perier <mrpouet@gentoo.org>
Date: Wed, 4 Nov 2009 11:58:25 +0100
Subject: Do not segfault when entry is NULL
---
gconf/gconf-value.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
--- a/gconf/gconf-value.c
+++ b/gconf/gconf-value.c
@@ -1609,6 +1609,7 @@ void
gconf_entry_set_value (GConfEntry *entry,
const GConfValue *val)
{
+ g_return_if_fail (entry != NULL);
gconf_entry_set_value_nocopy (entry,
val ? gconf_value_copy (val) : NULL);
}
|