mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 02:26:00 +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);
|
girara_setting_get(zathura->ui.session, "show-directories", &show_directories);
|
||||||
|
|
||||||
/* read files */
|
/* read files */
|
||||||
char* name = NULL;
|
const char* name = NULL;
|
||||||
while ((name = (char*) g_dir_read_name(dir)) != NULL) {
|
while ((name = g_dir_read_name(dir)) != NULL) {
|
||||||
char* e_name = g_filename_display_name(name);
|
char* e_name = g_filename_display_name(name);
|
||||||
if (e_name == NULL) {
|
if (e_name == NULL) {
|
||||||
goto error_free;
|
goto error_free;
|
||||||
|
|
Loading…
Reference in a new issue