* Fixes NB#103682, correctly select the default region
[modest] / 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