(mc_search__get_one_symbol): cosmetics.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2018-01-21 11:11:56 +03:00
parent 52d1980c46
commit c511968cd4

View File

@ -125,13 +125,8 @@ mc_search__get_one_symbol (const char *charset, const char *str, gsize str_len,
converted_str2 = converted_str2 =
mc_search__recode_str (converted_str, tmp_len, cp_display, charset, &converted_str_len); mc_search__recode_str (converted_str, tmp_len, cp_display, charset, &converted_str_len);
#endif #endif
if (just_letters) if (just_letters != NULL)
{ *just_letters = str_isalnum (converted_str) && !str_isdigit (converted_str);
if (str_isalnum (converted_str) && !str_isdigit (converted_str))
*just_letters = TRUE;
else
*just_letters = FALSE;
}
#ifdef HAVE_CHARSET #ifdef HAVE_CHARSET
g_free (converted_str); g_free (converted_str);
return converted_str2; return converted_str2;