mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 08:25:59 +01:00
Fix sorting
This commit is contained in:
parent
4f3b1b257b
commit
5d490f6895
1 changed files with 4 additions and 3 deletions
|
@ -830,8 +830,8 @@ plain_io_append(GiraraInputHistoryIO* db, const char* input)
|
|||
static int
|
||||
compare_time(const void* l, const void* r, void* data)
|
||||
{
|
||||
const gchar* lhs = l;
|
||||
const gchar* rhs = r;
|
||||
const gchar* lhs = *(const gchar**) l;
|
||||
const gchar* rhs = *(const gchar**) r;
|
||||
GKeyFile* keyfile = data;
|
||||
|
||||
time_t lhs_time = 0;
|
||||
|
@ -874,8 +874,9 @@ plain_get_recent_files(zathura_database_t* db, int max)
|
|||
}
|
||||
|
||||
for (gsize s = 0; s != groups_size; ++s) {
|
||||
girara_list_append(result, groups[s]);
|
||||
girara_list_append(result, g_strdup(groups[s]));
|
||||
}
|
||||
g_strfreev(groups);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue