mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:36:01 +01:00
Fix type
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
2498d5cf81
commit
7c5ec27314
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ list_files(zathura_t* zathura, const char* current_path, const char* current_fil
|
|||
girara_setting_get(zathura->ui.session, "show-directories", &show_directories);
|
||||
|
||||
/* read files */
|
||||
char* name = NULL;
|
||||
while ((name = (char*) g_dir_read_name(dir)) != NULL) {
|
||||
const char* name = NULL;
|
||||
while ((name = g_dir_read_name(dir)) != NULL) {
|
||||
char* e_name = g_filename_display_name(name);
|
||||
if (e_name == NULL) {
|
||||
goto error_free;
|
||||
|
|
Loading…
Reference in a new issue