diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-04-14 07:11:49 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-04-14 07:31:03 +0200 |
commit | a012011631a04c79e283b494acf91706bfb48f43 (patch) | |
tree | 4dbba4f9d09998b6cf71daa0cf657d21b7862066 /fiv.c | |
parent | 05ac3a065198378653d0b94dc25946c71d4d23a1 (diff) | |
download | fiv-a012011631a04c79e283b494acf91706bfb48f43.tar.gz fiv-a012011631a04c79e283b494acf91706bfb48f43.tar.xz fiv-a012011631a04c79e283b494acf91706bfb48f43.zip |
Deduplicate file information structures
Diffstat (limited to 'fiv.c')
-rw-r--r-- | fiv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -783,11 +783,11 @@ on_model_files_changed(FivIoModel *model, G_GNUC_UNUSED gpointer user_data) g_return_if_fail(model == g.model); gsize len = 0; - const FivIoModelEntry *files = fiv_io_model_get_files(g.model, &len); + FivIoModelEntry *const *files = fiv_io_model_get_files(g.model, &len); g_ptr_array_free(g.files, TRUE); g.files = g_ptr_array_new_full(len, g_free); for (gsize i = 0; i < len; i++) - g_ptr_array_add(g.files, g_strdup(files[i].uri)); + g_ptr_array_add(g.files, g_strdup(files[i]->uri)); update_files_index(); |