[dconf/f15/master] Fix a dconf-editor crash
Matthias Clasen
mclasen at fedoraproject.org
Wed Apr 6 23:49:08 UTC 2011
commit 3516715f22f2654f18fef237fa3bc393976f20cd
Author: Matthias Clasen <mclasen at redhat.com>
Date: Wed Apr 6 14:59:01 2011 -0400
Fix a dconf-editor crash
dconf-editor-crash.patch | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/dconf-editor-crash.patch b/dconf-editor-crash.patch
new file mode 100644
index 0000000..a96b63c
--- /dev/null
+++ b/dconf-editor-crash.patch
@@ -0,0 +1,15 @@
+diff -up dconf-0.7.3/editor/dconf-schema.vala.crash dconf-0.7.3/editor/dconf-schema.vala
+--- dconf-0.7.3/editor/dconf-schema.vala.crash 2011-04-06 14:57:43.277748785 -0400
++++ dconf-0.7.3/editor/dconf-schema.vala 2011-04-06 14:58:41.160881491 -0400
+@@ -52,9 +52,9 @@ public class SchemaKey
+ }
+ }
+ else if (child->name == "summary")
+- summary = child->children->content;
++ summary = child->children == null ? "" : child->children->content;
+ else if (child->name == "description")
+- description = child->children->content;
++ description = child->children == null ? "" : child->children->content;
+ else if (child->name == "range")
+ range = new SchemaValueRange.from_xml(type, child);
+ else if (child->name == "choices")
More information about the scm-commits
mailing list