From 78cea3f4a40371d0273625b0f03dca001acf1e08 Mon Sep 17 00:00:00 2001 From: Jann Horn Date: Sat, 12 Sep 2015 15:31:30 +0200 Subject: [PATCH] remove stupid specialcase --- cleanmysourcetree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cleanmysourcetree.c b/cleanmysourcetree.c index cc116ca..f324059 100644 --- a/cleanmysourcetree.c +++ b/cleanmysourcetree.c @@ -96,11 +96,7 @@ static void add_files_recursive(const char *current_path) { continue; char file_path[strlen(current_path) + 1 + strlen(entry.d_name) + 1]; - if (strcmp(current_path, ".") == 0) { - strcpy(file_path, entry.d_name); - } else { - sprintf(file_path, "%s/%s", current_path, entry.d_name); - } + sprintf(file_path, "%s/%s", current_path, entry.d_name); struct stat st; if (lstat(file_path, &st)) -- 2.20.1