X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon2%2Fmodest-country-picker.c;h=26b560da14bc44c175683991299da7db4312bba6;hb=9b57b64431553f49ce55d7141af6afd9a0882747;hp=8e986a5b7362d27dc60865051d6276a81bbd19c1;hpb=0f5f1af754aae1d0df3860e6e6cba70f81927271;p=modest 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