diff options
author | Mark McLoughlin <mark@skynet.ie> | 2004-08-25 21:20:43 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@src.gnome.org> | 2004-08-25 21:20:43 +0000 |
commit | 529df7834cd9b5d280b13ae227db89cd9bd12781 (patch) | |
tree | 22441d5f2380445f28baf7338ac017b1bab0f3f4 | |
parent | 8fd2113c8ee29358c49ae848fc791bde26af8d2d (diff) | |
download | gconf-529df7834cd9b5d280b13ae227db89cd9bd12781.tar.gz |
don't abort if we find no local schema to match any locales - there may
2004-08-25 Mark McLoughlin <mark@skynet.ie>
* backends/markup-tree.c: (markup_entry_get_value): don't
abort if we find no local schema to match any locales - there
may not be a "C" local schema at all. See bug #147522 for a
test case from Caio Begotti <caio1982@gmail.com >
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | backends/markup-tree.c | 10 |
2 files changed, 11 insertions, 6 deletions
@@ -1,3 +1,10 @@ +2004-08-25 Mark McLoughlin <mark@skynet.ie> + + * backends/markup-tree.c: (markup_entry_get_value): don't + abort if we find no local schema to match any locales - there + may not be a "C" local schema at all. See bug #147522 for a + test case from Caio Begotti <caio1982@gmail.com > + 2004-08-19 Mark McLoughlin <mark@skynet.ie> * configure.in: post-release bump to 2.7.92. diff --git a/backends/markup-tree.c b/backends/markup-tree.c index ba8b5b88..6b041675 100644 --- a/backends/markup-tree.c +++ b/backends/markup-tree.c @@ -1522,24 +1522,22 @@ markup_entry_get_value (MarkupEntry *entry, * fall back to C locale if we can */ - g_assert (best != NULL); - - if (best->locale) + if (best && best->locale) gconf_schema_set_locale (schema, best->locale); else gconf_schema_set_locale (schema, "C"); - if (best->default_value) + if (best && best->default_value) gconf_schema_set_default_value (schema, best->default_value); else if (c_local_schema && c_local_schema->default_value) gconf_schema_set_default_value (schema, c_local_schema->default_value); - if (best->short_desc) + if (best && best->short_desc) gconf_schema_set_short_desc (schema, best->short_desc); else if (c_local_schema && c_local_schema->short_desc) gconf_schema_set_short_desc (schema, c_local_schema->short_desc); - if (best->long_desc) + if (best && best->long_desc) gconf_schema_set_long_desc (schema, best->long_desc); else if (c_local_schema && c_local_schema->long_desc) gconf_schema_set_long_desc (schema, c_local_schema->long_desc); |