small change

This commit is contained in:
nova
2026-05-10 19:13:16 +02:00
parent 3c0f26efee
commit 557e0eb416

5
dir.c
View File

@@ -136,9 +136,6 @@ void get_dir_content(char *path, dir *dir){
free(full_path); free(full_path);
free(file); free(file);
free(entry[i]); free(entry[i]);
full_path = NULL;
file = NULL;
entry[i] = NULL;
} }
} }
@@ -165,7 +162,7 @@ void print_dir(WINDOW *win, char print_info, dir *dir){
#else #else
long offset_front = 2; long offset_front = 2;
#endif #endif
long selected_file_current = dir->current_file - dir->file_list; unsigned long selected_file_current = dir->current_file - dir->file_list;
long offset_index = 2; /* only used for the index of the file itself */ long offset_index = 2; /* only used for the index of the file itself */
if (print_info) { if (print_info) {