Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2017-01-24 23:58:05 +01:00
parent 2498d5cf81
commit 7c5ec27314

View File

@ -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;