diff --git a/dir.c b/dir.c index e72b463..a00d60e 100644 --- a/dir.c +++ b/dir.c @@ -136,9 +136,6 @@ void get_dir_content(char *path, dir *dir){ free(full_path); free(file); 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 long offset_front = 2; #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 */ if (print_info) {