mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-12 02:43:42 +03:00
(edit_collect_completions): str_convert_to_display() never returns NULL.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c2e2a33358
commit
454e23d48f
@ -1308,9 +1308,9 @@ edit_collect_completions (WEdit * edit, off_t word_start, gsize word_len,
|
||||
#ifdef HAVE_CHARSET
|
||||
{
|
||||
GString *recoded;
|
||||
recoded = str_convert_to_display (temp->str);
|
||||
|
||||
if (recoded && recoded->len)
|
||||
recoded = str_convert_to_display (temp->str);
|
||||
if (recoded->len != 0)
|
||||
g_string_assign (temp, recoded->str);
|
||||
|
||||
g_string_free (recoded, TRUE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user