From: Sergio Villar Senin Date: Mon, 16 Mar 2009 16:42:55 +0000 (+0000) Subject: * Fixes NB#103682, correctly select the default region X-Git-Tag: git_migration_finished~320 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=73da8a1c59ade72ac78b69d2733be28d74c18e4b;hp=55242bb5f041fdfc6373b419bfd06b2ce96bd50e * Fixes NB#103682, correctly select the default region * Fixes NB#104978, crash in fill_providers pmo-trunk-r8050 --- diff --git a/src/hildon2/modest-country-picker.c b/src/hildon2/modest-country-picker.c index 8e986a5..26b560d 100644 --- a/src/hildon2/modest-country-picker.c +++ b/src/hildon2/modest-country-picker.c @@ -167,6 +167,9 @@ parse_mcc_mapping_line (const char* line, char** country) /* Go to the first tab (Country separator) */ tab = g_utf8_strrchr (line, -1, '\t'); + if (!tab) + return 0; + *country = g_utf8_find_next_char (tab, NULL); /* Replace by end of string. We need to use strlen, because