From be9436570c0483f35a3f74dd8e0133e620e2fd1b Mon Sep 17 00:00:00 2001 From: nova Date: Sat, 15 Nov 2025 22:31:19 +0100 Subject: [PATCH] removal of unnecessary null check, during testing it was never null --- dir.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/dir.c b/dir.c index 6fea069..1ba95bd 100644 --- a/dir.c +++ b/dir.c @@ -315,14 +315,6 @@ void print_dir(WINDOW *win, char print_info, unsigned long *dir_file_count, file } else { mvwaddnstr(win, i-offset_vertical, 0, file_name, line_width); } - if (file_name != NULL) { - /* sometimes NULL remains, need to do deeper analysis soon */ - free(file_name); - } else { - printf("file_name remains NULL on %s, if this happens consistent on the same file, please inform me", dir_content[i].file_name); - volatile static int debug_print_dir; - debug_print_dir++; - } if (dir_content[i].status & FILE_STATUS_SELECTED) { wattroff(win, COLOR_PAIR(8)); } else {