* Fixes NB#103682, correctly select the default region
authorSergio Villar Senin <svillar@igalia.com>
Mon, 16 Mar 2009 16:42:55 +0000 (16:42 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 16 Mar 2009 16:42:55 +0000 (16:42 +0000)
* Fixes NB#104978, crash in fill_providers

pmo-trunk-r8050

src/hildon2/modest-country-picker.c

index 8e986a5..26b560d 100644 (file)
@@ -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