mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
(load_codepages_list_from_file): use g_ptr_array_new_full().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
372f6d0d0e
commit
1c7da890bf
@ -135,8 +135,7 @@ load_codepages_list_from_file (GPtrArray ** list, const char *fname)
|
||||
|
||||
if (*list == NULL)
|
||||
{
|
||||
*list = g_ptr_array_sized_new (16);
|
||||
g_ptr_array_set_free_func (*list, free_codepage_desc);
|
||||
*list = g_ptr_array_new_full (16, free_codepage_desc);
|
||||
g_ptr_array_add (*list, new_codepage_desc (id, p));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user