summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Untz <vincent@vuntz.net>2005-01-12 12:54:13 +0000
committerVincent Untz <vuntz@src.gnome.org>2005-01-12 12:54:13 +0000
commit5fee01b005bfeb3a1f29beba73c224192eadafbb (patch)
tree2d3826f2c5431740006ba5f13d8e73b04f27a281
parent33209d3977b6b92a7163a585495530c2ae02f803 (diff)
downloadgconf-5fee01b005bfeb3a1f29beba73c224192eadafbb.tar.gz
add sanity check
2005-01-12 Vincent Untz <vincent@vuntz.net> * gconf-value.c: (gconf_value_validate): add sanity check
-rw-r--r--ChangeLog4
-rw-r--r--gconf/gconf-value.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 818ed0f5..216fbf9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-12 Vincent Untz <vincent@vuntz.net>
+
+ * gconf-value.c: (gconf_value_validate): add sanity check
+
2004-11-30 Mark McLoughlin <mark@skynet.ie>
* configure.in: post-release bump to 2.9.3.
diff --git a/gconf/gconf-value.c b/gconf/gconf-value.c
index 8532e01e..a628590f 100644
--- a/gconf/gconf-value.c
+++ b/gconf/gconf-value.c
@@ -1668,6 +1668,8 @@ gconf_value_validate (const GConfValue *value,
{
GConfRealValue *real;
+ g_return_val_if_fail (value != NULL, FALSE);
+
real = REAL_VALUE (value);
switch (value->type)